From c7b264ec4d829893b546ee7a31071591a401fe63 Mon Sep 17 00:00:00 2001 From: "J. Koster" Date: Fri, 25 Oct 2024 20:48:51 +0200 Subject: [PATCH] Correct URL to jsonschema-validation-output-machines.md documentation (#1121) --- doc/upgrading.md | 4 ++-- src/main/java/com/networknt/schema/ValidationMessage.java | 2 +- src/main/java/com/networknt/schema/output/OutputUnit.java | 2 +- src/test/java/com/networknt/schema/OutputUnitTest.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/upgrading.md b/doc/upgrading.md index c3b05260c..2577cee32 100644 --- a/doc/upgrading.md +++ b/doc/upgrading.md @@ -145,7 +145,7 @@ This contains a breaking change in that the results from `failFast` are no longe * Annotation collection and reporting has been implemented * Keywords have been refactored to use annotations for evaluation to improve performance and meet functional requirements -* The list and hierarchical output formats have been implemented as per the [Specification for Machine-Readable Output for JSON Schema Validation and Annotation](https://github.com/json-schema-org/json-schema-spec/blob/main/jsonschema-validation-output-machines.md). +* The list and hierarchical output formats have been implemented as per the [Specification for Machine-Readable Output for JSON Schema Validation and Annotation](https://github.com/json-schema-org/json-schema-spec/blob/main/output/jsonschema-validation-output-machines.md). * The fail fast evaluation processing has been redesigned and fixed. This currently passes the [JSON Schema Test Suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite) with fail fast enabled. Previously contains and union type may cause incorrect results. * This also contains fixes for regressions introduced in 1.3.0 @@ -237,7 +237,7 @@ This can be changed by using a custom meta schema with the relevant `$vocabulary ### 1.2.0 The following are a summary of the changes -* Paths are now specified using the `JsonNodePath`. The paths are `instanceLocation`, `schemaLocation` and `evaluationPath`. The meaning of these paths are as defined in the [specification](https://github.com/json-schema-org/json-schema-spec/blob/main/jsonschema-validation-output-machines.md). +* Paths are now specified using the `JsonNodePath`. The paths are `instanceLocation`, `schemaLocation` and `evaluationPath`. The meaning of these paths are as defined in the [specification](https://github.com/json-schema-org/json-schema-spec/blob/main/output/jsonschema-validation-output-machines.md). * Schema Location comprises an absolute IRI component and a fragment that is a `JsonNodePath` that is typically a JSON pointer * Rename `at` to `instanceLocation`. Note that for the `required` validator the error message `instanceLocation` does not point to the missing property to be consistent with the [specification](https://json-schema.org/draft/2020-12/json-schema-core#section-12.4.2). The `ValidationMessage` now contains a `property` attribute if this is required. * Rename `schemaPath` to `schemaLocation`. This should generally be an absolute IRI with a fragment particularly in later drafts. diff --git a/src/main/java/com/networknt/schema/ValidationMessage.java b/src/main/java/com/networknt/schema/ValidationMessage.java index aa5f73ec8..2f5576637 100644 --- a/src/main/java/com/networknt/schema/ValidationMessage.java +++ b/src/main/java/com/networknt/schema/ValidationMessage.java @@ -36,7 +36,7 @@ * The output format. * * @see JSON + * "https://github.com/json-schema-org/json-schema-spec/blob/main/output/jsonschema-validation-output-machines.md">JSON * Schema */ @JsonIgnoreProperties({ "messageSupplier", "schemaNode", "instanceNode", "valid", "error" }) diff --git a/src/main/java/com/networknt/schema/output/OutputUnit.java b/src/main/java/com/networknt/schema/output/OutputUnit.java index fa63534b4..e85a05b54 100644 --- a/src/main/java/com/networknt/schema/output/OutputUnit.java +++ b/src/main/java/com/networknt/schema/output/OutputUnit.java @@ -29,7 +29,7 @@ * Represents an output unit. * * @see A + * "https://github.com/json-schema-org/json-schema-spec/blob/main/output/jsonschema-validation-output-machines.md">A * Specification for Machine-Readable Output for JSON Schema Validation and * Annotation */ diff --git a/src/test/java/com/networknt/schema/OutputUnitTest.java b/src/test/java/com/networknt/schema/OutputUnitTest.java index 35d3a9717..38c24e10a 100644 --- a/src/test/java/com/networknt/schema/OutputUnitTest.java +++ b/src/test/java/com/networknt/schema/OutputUnitTest.java @@ -37,7 +37,7 @@ * OutputUnitTest. * * @see A + * "https://github.com/json-schema-org/json-schema-spec/blob/main/output/jsonschema-validation-output-machines.md">A * Specification for Machine-Readable Output for JSON Schema Validation and * Annotation */