Skip to content

Commit 13fcdd7

Browse files
committed
Add some notes about boolean schemas
Something to think about adding soon
1 parent 204567a commit 13fcdd7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

json-schema-for-3.1.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ contains: schema - done
8787

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

92-
unevaluatedItems - single schema
93-
unevaluatedProperties: single schema
92+
unevaluatedItems - single schema - somewhat complex because of booleanSchemas
93+
unevaluatedProperties: single schema - as above
9494

9595

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

115+
Bigger things:
116+
- OpenAPI 3.1 supports boolean schemas that are just a true or false value, this code doesn't.
117+
115118
JSON Schema specs:
116119

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

0 commit comments

Comments
 (0)