Made the provider URI not accept empty strings
Change-Id: I654cab93f7495ada5246637b52e1299b8e8535e6
This commit is contained in:
parent
a1287b4351
commit
24468a402d
|
@ -48,7 +48,7 @@ class FlavorSchema(schema_base.SchemaBase):
|
||||||
"properties": {
|
"properties": {
|
||||||
"href": {
|
"href": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uri",
|
"minLength": 2,
|
||||||
"required": True
|
"required": True
|
||||||
},
|
},
|
||||||
"rel": {
|
"rel": {
|
||||||
|
|
|
@ -35,5 +35,19 @@
|
||||||
"empty_provider_list": {
|
"empty_provider_list": {
|
||||||
"id" : "empty_providers",
|
"id" : "empty_providers",
|
||||||
"providers" : []
|
"providers" : []
|
||||||
|
},
|
||||||
|
"missing_uri_in_provider": {
|
||||||
|
"id" : "doesnt_exist",
|
||||||
|
"providers" : [
|
||||||
|
{
|
||||||
|
"provider" : "mock",
|
||||||
|
"links": [
|
||||||
|
{
|
||||||
|
"href": "",
|
||||||
|
"rel": "provider_url"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue