I'm using the ruby gem json-schema
I have json schema code that uses format "date" which doesn't work, however, "format": "date-time" works. Any clue why it's not working?
schema.json
{
"id": "url here",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Person",
"description": "Person data",
"type": "object",
"definitions": {
},
"properties": {
"arrival": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date"
}
},
"required": ["date"]
}
},
"required": ["arrival"]
}