Merge "Alter image json schema to allow for null name and size values"

This commit is contained in:
Jenkins 2016-02-02 13:09:32 +00:00 committed by Gerrit Code Review
commit 57c1c6e276
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ common_image_schema = {
'status': {'type': 'string'}, 'status': {'type': 'string'},
'updated': {'type': 'string'}, 'updated': {'type': 'string'},
'links': image_links, 'links': image_links,
'name': {'type': 'string'}, 'name': {'type': ['string', 'null']},
'created': {'type': 'string'}, 'created': {'type': 'string'},
'minDisk': {'type': 'integer'}, 'minDisk': {'type': 'integer'},
'minRam': {'type': 'integer'}, 'minRam': {'type': 'integer'},
@ -41,7 +41,7 @@ common_image_schema = {
'additionalProperties': False, 'additionalProperties': False,
'required': ['id', 'links'] 'required': ['id', 'links']
}, },
'OS-EXT-IMG-SIZE:size': {'type': 'integer'}, 'OS-EXT-IMG-SIZE:size': {'type': ['integer', 'null']},
'OS-DCF:diskConfig': {'type': 'string'} 'OS-DCF:diskConfig': {'type': 'string'}
}, },
'additionalProperties': False, 'additionalProperties': False,