Made the provider URI not accept empty strings

Change-Id: I654cab93f7495ada5246637b52e1299b8e8535e6
This commit is contained in:
amitgandhinz 2014-10-23 12:04:18 -04:00 committed by Amit Gandhi
parent a1287b4351
commit 24468a402d
2 changed files with 15 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class FlavorSchema(schema_base.SchemaBase):
"properties": {
"href": {
"type": "string",
"format": "uri",
"minLength": 2,
"required": True
},
"rel": {

View File

@ -35,5 +35,19 @@
"empty_provider_list": {
"id" : "empty_providers",
"providers" : []
},
"missing_uri_in_provider": {
"id" : "doesnt_exist",
"providers" : [
{
"provider" : "mock",
"links": [
{
"href": "",
"rel": "provider_url"
}
]
}
]
}
}