Made the provider list mandatory

Change-Id: I418acae29e7a4ed9ad21098a914f91a8396906eb
This commit is contained in:
amitgandhinz 2014-10-22 17:07:07 -04:00 committed by Amit Gandhi
parent 454fb692c7
commit a1287b4351
3 changed files with 6 additions and 5 deletions

View File

@ -33,6 +33,7 @@ class FlavorSchema(schema_base.SchemaBase):
},
"providers": {
"type": "array",
"required": True,
"items": {
"type": "object",
"properties": {
@ -61,7 +62,7 @@ class FlavorSchema(schema_base.SchemaBase):
}
}
},
"minItems": 0
"minItems": 1
}
}
}

View File

@ -49,9 +49,5 @@
]
}
]
},
"no_providers": {
"id" : "asia",
"providers" : []
}
}

View File

@ -31,5 +31,9 @@
]
}
]
},
"empty_provider_list": {
"id" : "empty_providers",
"providers" : []
}
}