Subject: | keyword "required" not used like documented |
According to the latest specification of JSON-Schema,
one can require the existance of some keys like this:
{
"title": "Example Schema",
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"age": {
"description": "Age in years",
"type": "integer",
"minimum": 0
}
},
"required": ["firstName", "lastName"]
}
But this "required" is not supported in your module in this way.
Your module does it like this:
..
"lastName": {
"type": "string",
"required": 1
}
..
Cf. http://json-schema.org/examples.html
Are you using an older version of the specification?
Doesn't matter if it is older. But I just need to
know what version is supported, so I can document
it.
Thanks in advance