Restrict company end_date in schema for default data

Change-Id: I806813b8c750c621add23f2c63c685134a2a77b4
This commit is contained in:
Ilya Shakhat 2013-08-17 15:24:29 +04:00
parent 0afdc64bfd
commit d7b235144e
2 changed files with 3 additions and 2 deletions

View File

@ -830,7 +830,7 @@
"companies": [
{
"company_name": "Cisco Systems",
"end_date": "01-Jan-2013"
"end_date": "2013-Jan-01"
},
{
"company_name": "PLUMgrid",

View File

@ -31,7 +31,8 @@
"type": "string"
},
"end_date": {
"type": ["string", "null"]
"type": ["string", "null"],
"pattern": "20\\d{2}-\\w{3}-[0-3]\\d"
}
},
"additionalProperties": false