Invalid release id format validation

Explicitly validate release id data type to avoid 500 response.

Change-Id: I87a6cc6ae4d0a2e157e1c3ab41b18e06ca6c971b
Closes-Bug: #1560846
This commit is contained in:
Georgy Kibardin 2016-04-08 11:26:39 +03:00
parent 513a055ab7
commit 2d40272639
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ single_schema = {
"enum": list(consts.CLUSTER_STATUSES)
},
"ui_settings": base_types.UI_SETTINGS,
"release_id": {"type": "number"},
"release": {"type": "integer"},
"release_id": {"type": "integer"},
"replaced_deployment_info": {"type": "object"},
"replaced_provisioning_info": {"type": "object"},
"is_customized": {"type": "boolean"},