Skip to content

Commit

Permalink
Add some notes about boolean schemas
Browse files Browse the repository at this point in the history
Something to think about adding soon
  • Loading branch information
kevindew committed Jan 27, 2025
1 parent ed007b9 commit 8733278
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions json-schema-for-3.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ contains: schema - done

properties: object, each value json schema - in 3.0
patternProperties: object each value JSON schema key regex - done
additionalProperties: single json schema
additionalProperties: single json schema (works with the boolean schema value that we don't support)

unevaluatedItems - single schema
unevaluatedProperties: single schema
unevaluatedItems - single schema - somewhat complex because of booleanSchemas
unevaluatedProperties: single schema - as above


## Returning to this in 2025
Expand All @@ -112,6 +112,9 @@ Little things:
- probably want a quick way to get coverage of the methods on nodes
- could validate that pattern and patternProperties contain regexs

Bigger things:
- OpenAPI 3.1 supports boolean schemas that are just a true or false value, this code doesn't.

JSON Schema specs:

meta: https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00
Expand Down

0 comments on commit 8733278

Please sign in to comment.