Skip to content

Commit

Permalink
Remove unneeded detail on "format"
Browse files Browse the repository at this point in the history
This was just duplicating info from the JSON Schema spec.

Co-authored-by: Darrel <[email protected]>
  • Loading branch information
handrews and darrelmiller authored May 15, 2020
1 parent 5e817f7 commit f185d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versions/3.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ However, to support documentation needs, the `format` property is an open `strin
Additional formats MAY be used even though undefined by either JSON Schema or this specification.
Types that are not accompanied by a `format` property follow the type definition in the JSON Schema. Tools that do not recognize a specific `format` MAY default back to the `type` alone, as if the `format` is not specified.

Note that by default, JSON Schema validators MUST NOT attempt to validate the `format` keyword. It is primarily treated as an annotation that informs applications of the intended nature of the data. For historical reasons, it is possible to configure JSON Schema validators to validate `format`, but this is not consistently implemented and SHOULD NOT be relied upon in any environment where an unknown validator or unknown validator configuration might be used.
Note that by default, JSON Schema validators will not attempt to validate the `format` keyword. https://json-schema.org/draft/2019-09/release-notes.html#format-vocabulary

The formats defined by the OAS are:

Expand Down

0 comments on commit f185d06

Please sign in to comment.