From a5e1ebac6c4ec0ed1b76693769b661c1e3d72e29 Mon Sep 17 00:00:00 2001 From: Deven Phillips Date: Mon, 2 Nov 2020 12:36:44 -0500 Subject: [PATCH 1/2] Added link to JSON Schema Validation docs explain which formats are included in JSON Schema --- versions/3.1.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/3.1.0.md b/versions/3.1.0.md index 53f48be6c2..c446f0174c 100644 --- a/versions/3.1.0.md +++ b/versions/3.1.0.md @@ -143,7 +143,7 @@ Data types in the OAS are based on the types supported by the [JSON Schema Speci Note that `integer` as a type is also supported and is defined as a JSON number without a fraction or exponent part. Models are defined using the [Schema Object](#schemaObject), which is a superset of JSON Schema Specification Draft 2019-09. -As defined by JSON Schema, data types can have an optional modifier property: `format`. +As defined by [JSON Schema Validation](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.7.3), data types can have an optional modifier property: `format`. OAS defines additional formats to provide fine detail for primitive data types. The formats defined by the OAS are: From 642e6fbde2e45a6043b93efc62ccea63c3ba378f Mon Sep 17 00:00:00 2001 From: Deven Phillips Date: Mon, 2 Nov 2020 12:51:56 -0500 Subject: [PATCH 2/2] Update verbiage to be more accurate Co-authored-by: Mike Ralphson --- versions/3.1.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/3.1.0.md b/versions/3.1.0.md index c446f0174c..5d142dfb3e 100644 --- a/versions/3.1.0.md +++ b/versions/3.1.0.md @@ -143,7 +143,7 @@ Data types in the OAS are based on the types supported by the [JSON Schema Speci Note that `integer` as a type is also supported and is defined as a JSON number without a fraction or exponent part. Models are defined using the [Schema Object](#schemaObject), which is a superset of JSON Schema Specification Draft 2019-09. -As defined by [JSON Schema Validation](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.7.3), data types can have an optional modifier property: `format`. +As defined by the [JSON Schema Validation vocabulary](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.7.3), data types can have an optional modifier property: `format`. OAS defines additional formats to provide fine detail for primitive data types. The formats defined by the OAS are: