Merge "Volume backup response schemas are incorrect"

This commit is contained in:
Zuul 2020-09-09 00:30:14 +00:00 committed by Gerrit Code Review
commit 18166f2e49

View File

@ -66,7 +66,7 @@ create_backup = {
'properties': {
'id': {'type': 'string', 'format': 'uuid'},
'links': parameter_types.links,
'name': {'type': 'string'},
'name': {'type': ['string', 'null']},
# TODO(zhufl): metadata is added in 3.43, we should move it
# to the 3.43 schema file when microversion is supported
# in volume interfaces.
@ -91,7 +91,7 @@ update_backup = {
'properties': {
'id': {'type': 'string', 'format': 'uuid'},
'links': parameter_types.links,
'name': {'type': 'string'},
'name': {'type': ['string', 'null']},
'metadata': {'^.+$': {'type': 'string'}}
},
'additionalProperties': False,