Hello,
Unfortunately, you will encounter several problems:
1. inheritance is possible with the "extends" keyword, as in:
{
"schema": "for",
"cat": "here",
"extends": { "$ref": "#/animal" }
}
but in "animal", you define additionalProperties as being false. Which
means your cat will be invalid whatever you do. "extends" means that
all constraints in "animal" have to be obeyed _in addition_ to all
constraints in "cat", but it does not merge schemas. If you remove
additionalProperties, however, this problem goes away. Just ignore
unknown object members ;)
2. it looks like you want to have schemas in separate files: how do
you intend to load them, and then address them? "id" is fraught with
problems as it is currently defined, and no two implementations act
the same with regards to this keyword...
--
Francis Galiegue,
fgal...@gmail.com
JSON Schema:
https://github.com/json-schema
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)