2759
2759
2760
2760
<section title =" Keyword Relative Location" >
2761
2761
<t >
2762
- The relative location of the validating keyword that follows the validation
2763
- path. The value MUST be expressed as a JSON Pointer, and it MUST include
2764
- any by-reference applicators such as "$ref" or "$dynamicRef".
2762
+ The relative location of the validating keyword that follows the path
2763
+ traversed through the schema. The value MUST be expressed as a JSON
2764
+ Pointer, and it MUST include any by-reference applicators such as
2765
+ "$ref" or "$dynamicRef".
2765
2766
</t >
2766
2767
<figure >
2767
2768
<artwork >
2775
2776
due to the inclusion of these by-reference applicator keywords.
2776
2777
</t >
2777
2778
<t >
2778
- The JSON key for this information is "keywordLocation ".
2779
+ The JSON key for this information is "evaluationPath ".
2779
2780
</t >
2780
2781
</section >
2781
2782
@@ -2807,7 +2808,7 @@ https://example.com/schemas/common#/$defs/count/minimum
2807
2808
over a reference or if the schema does not declare an absolute IRI as its "$id".
2808
2809
</t >
2809
2810
<t >
2810
- The JSON key for this information is "absoluteKeywordLocation ".
2811
+ The JSON key for this information is "schemaLocation ".
2811
2812
</t >
2812
2813
</section >
2813
2814
@@ -2841,13 +2842,15 @@ https://example.com/schemas/common#/$defs/count/minimum
2841
2842
2842
2843
<section title =" Nested Results" >
2843
2844
<t >
2844
- For the two hierarchical structures , this property will hold nested errors
2845
- and annotations.
2845
+ For "basic" , this property will appear only at the root node and will hold
2846
+ all errors or annotations in a list .
2846
2847
</t >
2847
2848
<t >
2848
- The JSON key for nested results in failed validations is "errors"; for
2849
- successful validations it is "annotations". Note the plural forms, as
2850
- a keyword with nested results can also have a local error or annotation.
2849
+ For "detailed" and "verbose", this property will hold nested errors
2850
+ and annotations in a tree structure, mimicking that of the schema.
2851
+ </t >
2852
+ <t >
2853
+ The JSON key for nested results is "nested".
2851
2854
</t >
2852
2855
</section >
2853
2856
@@ -2857,19 +2860,14 @@ https://example.com/schemas/common#/$defs/count/minimum
2857
2860
<t >
2858
2861
The output MUST be an object containing a boolean property named "valid". When
2859
2862
additional information about the result is required, the output MUST also contain
2860
- "errors" or "annotations " as described below.
2863
+ "nested " as described below.
2861
2864
<list >
2862
2865
<t >
2863
2866
"valid" - a boolean value indicating the overall validation success or
2864
2867
failure
2865
2868
</t >
2866
2869
<t >
2867
- "errors" - the collection of errors or annotations produced by a failed
2868
- validation
2869
- </t >
2870
- <t >
2871
- "annotations" - the collection of errors or annotations produced by a
2872
- successful validation
2870
+ "nested" - the collection of errors or annotations produced by a keyword
2873
2871
</t >
2874
2872
</list >
2875
2873
For these examples, the following schema and instance will be used.
0 commit comments