@@ -3036,7 +3036,9 @@ https://example.com/schemas/common#/$defs/count/minimum
3036
3036
<t >
3037
3037
The root output unit contains "valid" for the overall result and "nested"
3038
3038
for the list of specific results. All other information is explicitly
3039
- omitted from the root output unit.
3039
+ omitted from the root output unit. If the root schema produces errors or
3040
+ annotations, then the output node for the root MUST be present within the
3041
+ root output unit's "nested" list with those errors or annotations.
3040
3042
</t >
3041
3043
<t >
3042
3044
Output units which do not contain errors or annotations SHOULD be excluded
@@ -3049,23 +3051,20 @@ https://example.com/schemas/common#/$defs/count/minimum
3049
3051
// failing results
3050
3052
{
3051
3053
"valid": false,
3052
- "evaluationPath": "",
3053
- "schemaLocation": "https://json-schema.org/schemas/example#",
3054
- "instanceLocation": "",
3055
3054
"nested": [
3056
3055
{
3057
3056
"valid": false,
3058
- "evaluationPath": "/properties/foo/0",
3059
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3057
+ "evaluationPath": "/properties/foo/allOf/ 0",
3058
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 0",
3060
3059
"instanceLocation": "/foo",
3061
3060
"errors": {
3062
3061
"required": "Required properties [\"unspecified-prop\"] were not present"
3063
3062
}
3064
3063
},
3065
3064
{
3066
3065
"valid": false,
3067
- "evaluationPath": "/properties/foo/1/properties/foo-prop",
3068
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3066
+ "evaluationPath": "/properties/foo/allOf/ 1/properties/foo-prop",
3067
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/properties/foo-prop",
3069
3068
"instanceLocation": "/foo/foo-prop",
3070
3069
"errors": {
3071
3070
"const": "Expected \"1\""
@@ -3086,9 +3085,6 @@ https://example.com/schemas/common#/$defs/count/minimum
3086
3085
// passing results
3087
3086
{
3088
3087
"valid": true,
3089
- "evaluationPath": "",
3090
- "schemaLocation": "https://json-schema.org/schemas/example#",
3091
- "instanceLocation": "",
3092
3088
"nested": [
3093
3089
{
3094
3090
"valid": true,
@@ -3105,8 +3101,8 @@ https://example.com/schemas/common#/$defs/count/minimum
3105
3101
},
3106
3102
{
3107
3103
"valid": true,
3108
- "evaluationPath": "/properties/foo/1",
3109
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3104
+ "evaluationPath": "/properties/foo/allOf/ 1",
3105
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1",
3110
3106
"instanceLocation": "/foo",
3111
3107
"annotations": {
3112
3108
"title": "foo-title",
@@ -3132,8 +3128,8 @@ https://example.com/schemas/common#/$defs/count/minimum
3132
3128
},
3133
3129
{
3134
3130
"valid": true,
3135
- "evaluationPath": "/properties/foo/1/properties/foo-prop",
3136
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3131
+ "evaluationPath": "/properties/foo/allOf/ 1/properties/foo-prop",
3132
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/properties/foo-prop",
3137
3133
"instanceLocation": "/foo/foo-prop",
3138
3134
"annotations": {
3139
3135
"title": "foo-prop-title"
@@ -3166,8 +3162,7 @@ https://example.com/schemas/common#/$defs/count/minimum
3166
3162
All output units are included in this format.
3167
3163
</t >
3168
3164
<t >
3169
- The location properties of the output unit MAY be omitted from the
3170
- root node.
3165
+ The location properties of the root output unit MAY be omitted.
3171
3166
</t >
3172
3167
<figure >
3173
3168
<artwork >
@@ -3187,32 +3182,32 @@ https://example.com/schemas/common#/$defs/count/minimum
3187
3182
"nested": [
3188
3183
{
3189
3184
"valid": false,
3190
- "evaluationPath": "/properties/foo/0",
3191
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3185
+ "evaluationPath": "/properties/foo/allOf/ 0",
3186
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 0",
3192
3187
"instanceLocation": "/foo",
3193
3188
"errors": {
3194
3189
"required": "Required properties [\"unspecified-prop\"] were not present"
3195
3190
}
3196
3191
},
3197
3192
{
3198
3193
"valid": false,
3199
- "evaluationPath": "/properties/foo/1",
3200
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3194
+ "evaluationPath": "/properties/foo/allOf/ 1",
3195
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1",
3201
3196
"instanceLocation": "/foo",
3202
3197
"nested": [
3203
3198
{
3204
3199
"valid": false,
3205
- "evaluationPath": "/properties/foo/1/properties/foo-prop",
3206
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3200
+ "evaluationPath": "/properties/foo/allOf/ 1/properties/foo-prop",
3201
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/properties/foo-prop",
3207
3202
"instanceLocation": "/foo/foo-prop",
3208
3203
"errors": {
3209
3204
"const": "Expected \"1\""
3210
3205
}
3211
3206
},
3212
3207
{
3213
3208
"valid": true,
3214
- "evaluationPath": "/properties/foo/1/additionalProperties/other-prop ",
3215
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/additionalProperties/other-prop ",
3209
+ "evaluationPath": "/properties/foo/allOf/ 1/additionalProperties",
3210
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/additionalProperties",
3216
3211
"instanceLocation": "/foo/other-prop"
3217
3212
}
3218
3213
]
@@ -3269,14 +3264,14 @@ https://example.com/schemas/common#/$defs/count/minimum
3269
3264
"nested": [
3270
3265
{
3271
3266
"valid": true,
3272
- "evaluationPath": "/properties/foo/0",
3273
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3267
+ "evaluationPath": "/properties/foo/allOf/ 0",
3268
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 0",
3274
3269
"instanceLocation": "/foo"
3275
3270
},
3276
3271
{
3277
3272
"valid": true,
3278
- "evaluationPath": "/properties/foo/1",
3279
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3273
+ "evaluationPath": "/properties/foo/allOf/ 1",
3274
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1",
3280
3275
"instanceLocation": "/foo",
3281
3276
"annotations": {
3282
3277
"title": "foo-title",
@@ -3290,17 +3285,17 @@ https://example.com/schemas/common#/$defs/count/minimum
3290
3285
"nested": [
3291
3286
{
3292
3287
"valid": true,
3293
- "evaluationPath": "/properties/foo/1/properties/foo-prop",
3294
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3288
+ "evaluationPath": "/properties/foo/allOf/ 1/properties/foo-prop",
3289
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/properties/foo-prop",
3295
3290
"instanceLocation": "/foo/foo-prop",
3296
3291
"annotations": {
3297
3292
"title": "foo-prop-title"
3298
3293
}
3299
3294
},
3300
3295
{
3301
3296
"valid": true,
3302
- "evaluationPath": "/properties/foo/1/additionalProperties/unspecified-prop ",
3303
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/additionalProperties/unspecified-prop ",
3297
+ "evaluationPath": "/properties/foo/allOf/ 1/additionalProperties",
3298
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/additionalProperties",
3304
3299
"instanceLocation": "/foo/unspecified-prop"
3305
3300
}
3306
3301
]
0 commit comments