Fixes error in Swagger Documentation (#9417)
* OpenAPI docu error fixes
This commit is contained in:
parent
05077450d1
commit
c27d12055e
|
@ -1977,6 +1977,42 @@
|
|||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"alarms_values": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"hostname": {
|
||||
"type": "string"
|
||||
},
|
||||
"alarms": {
|
||||
"type": "object",
|
||||
"description": "HashMap with keys being alarm names",
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"value": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"REMOVED",
|
||||
"UNDEFINED",
|
||||
"UNINITIALIZED",
|
||||
"CLEAR",
|
||||
"RAISED",
|
||||
"WARNING",
|
||||
"CRITICAL",
|
||||
"UNKNOWN"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1544,3 +1544,29 @@ components:
|
|||
old_value:
|
||||
type: number
|
||||
nullable: true
|
||||
alarms_values:
|
||||
type: object
|
||||
properties:
|
||||
hostname:
|
||||
type: string
|
||||
alarms:
|
||||
type: object
|
||||
description: HashMap with keys being alarm names
|
||||
additionalProperties:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
value:
|
||||
type: integer
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- REMOVED
|
||||
- UNDEFINED
|
||||
- UNINITIALIZED
|
||||
- CLEAR
|
||||
- RAISED
|
||||
- WARNING
|
||||
- CRITICAL
|
||||
- UNKNOWN
|
||||
|
|
Loading…
Reference in New Issue