Open mainameiz opened 9 years ago
For the first example I think you can simplify by having datetime use a compound type, ie "type": ["null", "string"]
. And/or use a ref and then give it that type as a peer (which should override the more generic type inside of datetime).
I think it might be good to support the other case too, but I haven't run into cases where it was actually needed quite yet. So while I'm generally in favor of the idea, I think I would just as soon wait for a concrete need.
Thanks!
Hello!
Currently it's assumed that attribute can have only one type and this case doesn't work.
Example of my schema.
It is a valid json-schema and allows to DRY schema definitions.
In addition it may be applicable in situations when for example you want to support different time formats.