From f8c48b62554312921c7e4b670392938be020fba4 Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Fri, 4 Jun 2021 13:44:45 +0100 Subject: [PATCH 1/2] fix: erroneous reference to v3.0 of the spec as if it was the current version Signed-off-by: Mike Ralphson --- versions/3.1.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/3.1.1.md b/versions/3.1.1.md index 3d339e2b0b..72c1e37699 100644 --- a/versions/3.1.1.md +++ b/versions/3.1.1.md @@ -2712,7 +2712,7 @@ This object MAY be extended with [Specification Extensions](#specificationExtens The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`. -In OAS 3.0, a response payload MAY be described to be exactly one of any number of types: +In OAS 3.x, a response payload MAY be described to be exactly one of any number of types: ```yaml MyResponseType: From e4ddc4bdb5d5b418852b9e0cd627727f76cb8a9e Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Fri, 4 Jun 2021 13:42:00 +0100 Subject: [PATCH 2/2] Allow boolean values for top level schemaObjects Signed-off-by: Mike Ralphson --- versions/3.1.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/3.1.1.md b/versions/3.1.1.md index 72c1e37699..c7fbf49be4 100644 --- a/versions/3.1.1.md +++ b/versions/3.1.1.md @@ -2306,7 +2306,7 @@ $ref: definitions.yaml#/Pet #### Schema Object The Schema Object allows the definition of input and output data types. -These types can be objects, but also primitives and arrays. This object is a superset of the [JSON Schema Specification Draft 2020-12](https://tools.ietf.org/html/draft-bhutton-json-schema-00). +These types can be objects, but also primitives and arrays. This object is a superset of the [JSON Schema Specification Draft 2020-12](https://tools.ietf.org/html/draft-bhutton-json-schema-00). The empty schema (which allows any instance to validate) MAY be represented by the `boolean` value `true` and a schema which allows no instance to validate MAY be represented by the `boolean` value `false`. For more information about the properties, see [JSON Schema Core](https://tools.ietf.org/html/draft-bhutton-json-schema-00) and [JSON Schema Validation](https://tools.ietf.org/html/draft-bhutton-json-schema-validation-00).