jsschema
jsschema copied to clipboard
Support for draft-07?
Hello! If this is still an active project, you may be interested to know that there have been new drafts published adding more features to JSON Schema and cleaning up some oddities.
- draft-05 was a bugfix with no new features or meta-schema
- draft-06 is not entirely backwards-compatible with draft-04 (
idbecame$id, andexclusiveMaximum/exclusiveMinimumbecame numbers instead of boolean modifiers tomaximum/minimums; also addedcontains,propertyNames,const,examples, and a few more formats) - draft-07 is backwards-compatible with draft-06 (added
if/then/else,contentMediaType/contentEncoding,readOnly,writeOnlyand numerous formats; some keywords likereadOnlywere moved over from hyper-schema b/c they had nothing to do with generating hyperlinks) - draft-08 will likely be published within the next six months
@handrews thanks!
for my own reference: http://json-schema.org/draft-07/json-schema-release-notes.html http://json-schema.org/draft-06/json-schema-migration-faq.html