Skip to content

Commit 250d4ad

Browse files
authored
Allow booleans in place of any top-level schema field (#2609)
* fix: erroneous reference to v3.0 of the spec as if it was the current version Signed-off-by: Mike Ralphson <[email protected]> * Allow boolean values for top level schemaObjects Signed-off-by: Mike Ralphson <[email protected]>
1 parent 682860d commit 250d4ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

versions/3.1.1.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ $ref: definitions.yaml#/Pet
23062306
#### <a name="schemaObject"></a>Schema Object
23072307

23082308
The Schema Object allows the definition of input and output data types.
2309-
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).
2309+
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`.
23102310

23112311
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).
23122312

@@ -2712,7 +2712,7 @@ This object MAY be extended with [Specification Extensions](#specificationExtens
27122712

27132713
The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`.
27142714

2715-
In OAS 3.0, a response payload MAY be described to be exactly one of any number of types:
2715+
In OAS 3.x, a response payload MAY be described to be exactly one of any number of types:
27162716

27172717
```yaml
27182718
MyResponseType:

0 commit comments

Comments
 (0)