From 87332787755ea326525fdec4abd5ddd2a4f10b93 Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Mon, 27 Jan 2025 21:52:49 +0000 Subject: [PATCH] Add some notes about boolean schemas Something to think about adding soon --- json-schema-for-3.1.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/json-schema-for-3.1.md b/json-schema-for-3.1.md index 19294fa..0d05c64 100644 --- a/json-schema-for-3.1.md +++ b/json-schema-for-3.1.md @@ -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 @@ -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