Open epoberezkin opened 4 years ago
also: require (allow?) type array/object (but must be compatible with the form). If you require, you would be able to define loose meta-schema for all forms. For object, there is no reason not to consider discriminator and properties as one form allowing all three keywords, where in case of discriminator, properties and optionalProperties would define shared properties for all mappings - it would also allow to define the schema for tag e.g. string or number as you cannot imply it from the schema.
So in general, love the simplicity, but it violates "explicit better than implicit" idea and does not allow creating meta-schema. It would be very easy to rectify.
One more thing:
"values": I would allow schema for "keys", particularly if you support "size" in addition to "type". That would allow defining sparse arrays for example or limit the size of the dictionary keys.
The rest looks good.
Happy to make PRs for this items