From 8ab3d2569ca43c44ffd73cacbf8a1a0f9289a1e1 Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Mon, 28 Aug 2023 11:51:34 +1200 Subject: [PATCH 1/3] found some errata in the output sections --- jsonschema-core.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/jsonschema-core.md b/jsonschema-core.md index 607e35fc..7c4101d8 100644 --- a/jsonschema-core.md +++ b/jsonschema-core.md @@ -2079,7 +2079,7 @@ consumers will need to properly interpret validation results. ### Format JSON Schema output is defined using the JSON Schema data instance model as -described in section 4.2.1. Implementations MAY deviate from this as supported +described in [Instance Data Model](#data-model). Implementations MAY deviate from this as supported by their specific languages and platforms, however it is RECOMMENDED that the output be convertible to the JSON format defined herein via serialization or other means. @@ -2092,8 +2092,7 @@ section for the requirements of each format. - *Flag*: A boolean which simply indicates the overall validation result with no further details. - *List*: Provides validation information in a flat list structure. - -Hierarchical: Provides validation information in a hierarchical structure that +- *Hierarchical*: Provides validation information in a hierarchical structure that follows the evaluation paths generated while processing the schema. An implementation MUST provide the "flag" format and SHOULD provide at least one @@ -2283,7 +2282,6 @@ For these examples, the following schema and instances will be used. } ``` - ```json "Failing instance" { "foo": {"foo-prop": "not 1", "other-prop": false}, @@ -2324,9 +2322,9 @@ allows their users to craft their own messages. The passing instance will produce the following annotations: -- The keyword `title` evaluated at `` by following the path `` will produce +- The keyword `title` evaluated at the instance root by the root schema will produce `"root"`. -- The keyword `properties` evaluated at `` by following the path `` will produce +- The keyword `properties` evaluated at instance root by the root schema will produce `["foo", "bar"]`. - The keyword `title` evaluated at `/properties/foo` by following the path `/properties/foo` will produce `"foo-title"`. From 5ee5bdd72577e9bea91b35209a320bbc3480d942 Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Tue, 29 Aug 2023 09:40:27 +1200 Subject: [PATCH 2/3] adjust for line length --- jsonschema-core.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsonschema-core.md b/jsonschema-core.md index 7c4101d8..9c4e17e7 100644 --- a/jsonschema-core.md +++ b/jsonschema-core.md @@ -2079,10 +2079,10 @@ consumers will need to properly interpret validation results. ### Format JSON Schema output is defined using the JSON Schema data instance model as -described in [Instance Data Model](#data-model). Implementations MAY deviate from this as supported -by their specific languages and platforms, however it is RECOMMENDED that the -output be convertible to the JSON format defined herein via serialization or -other means. +described in [Instance Data Model](#data-model). Implementations MAY deviate +from this as supported by their specific languages and platforms, however it +is RECOMMENDED that the output be convertible to the JSON format defined herein +via serialization or other means. ### Output Formats From c13033f8c97ecc1a18456ea682fdc8eaba0f9224 Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Mon, 4 Sep 2023 12:36:00 +1200 Subject: [PATCH 3/3] add closing brace --- jsonschema-core.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonschema-core.md b/jsonschema-core.md index 9c4e17e7..d47d1618 100644 --- a/jsonschema-core.md +++ b/jsonschema-core.md @@ -3165,7 +3165,7 @@ This meta-schema combines several vocabularies for general use. {"$ref": "https://json-schema.org/draft/next/meta/core"}, {"$ref": "https://json-schema.org/draft/next/meta/applicator"}, {"$ref": "https://json-schema.org/draft/next/meta/validation"}, - {"$ref": "https://example.com/meta/example-vocab", + {"$ref": "https://example.com/meta/example-vocab"}, ], "patternProperties": { "^unevaluated": false