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

View File

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