Skip to content

Commit

Permalink
Allow booleans in place of any top-level schema field (#2609)
Browse files Browse the repository at this point in the history
* fix: erroneous reference to v3.0 of the spec as if it was the current version

Signed-off-by: Mike Ralphson <mike.ralphson@gmail.com>

* Allow boolean values for top level schemaObjects

Signed-off-by: Mike Ralphson <mike.ralphson@gmail.com>
  • Loading branch information
MikeRalphson authored Jun 10, 2021
1 parent 682860d commit 250d4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions versions/3.1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,7 @@ $ref: definitions.yaml#/Pet
#### <a name="schemaObject"></a>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).

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 250d4ad

Please sign in to comment.