Skip to content

Compatibility with JSON Schema draft-06 and draft-07 #15

Open
@handrews

Description

@handrews

Hi folks,
I'm dropping by from the JSON Schema specification project to let you know that JSON Schema is now up to draft-07, with an increasing number of implementations supporting at least draft-06 and a few supporting draft-07. (draft-05 was a wording improvement of draft-04 and is not separately implemented).

Since you are generating schemas, I believe that all you would have to do to claim compatibility is:

  • Be able to produce draft-06 and/or draft-07 $schema values.

  • Support using $id instead of id (changed in draft-06, id was too easily confused with very common "id" instance object properties)

  • If you use exclusiveMinimum or exclusiveMaximum, they are now numbers instead of being boolean modifiers to minimum or maximum (changed in draft-06)

  • Make sure that you are only using $ref where a schema is expected (most people do this already)

    On the json-schema.org web site, we will be moving tools that support only draft-04 and older to a separate page for legacy/obsolete implementations. The main implementations page will focus on tools supporting draft-06 or later.

    Please let me know if you have any questions, and of course feel free to close this if you will not be updating. This is a notification, not a demand :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Compatibility with JSON Schema draft-06 and draft-07 · Issue #15 · bayeslife/api-add-in