ietf-wg-httpapi / mediatypes

Other
5 stars 4 forks source link

Fix: #7. Add JSON Schema media types #19

Closed jdesrosiers closed 2 years ago

jdesrosiers commented 2 years ago

Resolves #7

This adds the application/schema+json and `application/schema-instance+json media types. I felt that there was too much I wanted to add to #14, so I created an alternate PR. The idea is to define all the media-type specific stuff as loosely as is convenient, define the process for determining the dialect of the schema, and then defer all other semantics to be defined by the dialect. All of this came from the 2020-12 specification with some editing.

Tagging the active JSON Schema spec contributors for visibility: @Relequestual @karenetheridge @gregsdennis @julian

jdesrosiers commented 2 years ago

Improvements based on comments have been pushed.