Fix disabled_reason's type in services schema
disable_reason in services schema can be null when status is enabled, so this is to add null in disable_reason's type. https://developer.openstack.org/api-ref/compute/#update-compute-service Change-Id: I5478eff73675d0f236acddfb5387cc8cd9e91a5c partially-implements: blueprint full-schema-for-all-microversions
This commit is contained in:
parent
f87c08c7c9
commit
54ea756a74
@ -42,7 +42,8 @@ update_service = {
|
|||||||
'properties': {
|
'properties': {
|
||||||
'id': {'type': 'string', 'format': 'uuid'},
|
'id': {'type': 'string', 'format': 'uuid'},
|
||||||
'binary': {'type': 'string'},
|
'binary': {'type': 'string'},
|
||||||
'disabled_reason': {'type': 'string'},
|
# disabled_reason can be null when status is enabled.
|
||||||
|
'disabled_reason': {'type': ['string', 'null']},
|
||||||
'host': {'type': 'string'},
|
'host': {'type': 'string'},
|
||||||
'state': {'type': 'string'},
|
'state': {'type': 'string'},
|
||||||
'status': {'type': 'string'},
|
'status': {'type': 'string'},
|
||||||
|
Loading…
Reference in New Issue
Block a user