@@ -3090,7 +3090,9 @@ https://example.com/schemas/common#/$defs/count/minimum
3090
3090
<t >
3091
3091
The root output unit contains "valid" for the overall result and "nested"
3092
3092
for the list of specific results. All other information is explicitly
3093
- omitted from the root output unit.
3093
+ omitted from the root output unit. If the root schema produces errors or
3094
+ annotations, then the output node for the root MUST be present within the
3095
+ root output unit's "nested" list with those errors or annotations.
3094
3096
</t >
3095
3097
<t >
3096
3098
Output units which do not contain errors or annotations SHOULD be excluded
@@ -3103,23 +3105,20 @@ https://example.com/schemas/common#/$defs/count/minimum
3103
3105
// failing results
3104
3106
{
3105
3107
"valid": false,
3106
- "evaluationPath": "",
3107
- "schemaLocation": "https://json-schema.org/schemas/example#",
3108
- "instanceLocation": "",
3109
3108
"nested": [
3110
3109
{
3111
3110
"valid": false,
3112
- "evaluationPath": "/properties/foo/0",
3113
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3111
+ "evaluationPath": "/properties/foo/allOf/ 0",
3112
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 0",
3114
3113
"instanceLocation": "/foo",
3115
3114
"errors": {
3116
3115
"required": "Required properties [\"unspecified-prop\"] were not present"
3117
3116
}
3118
3117
},
3119
3118
{
3120
3119
"valid": false,
3121
- "evaluationPath": "/properties/foo/1/properties/foo-prop",
3122
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3120
+ "evaluationPath": "/properties/foo/allOf/ 1/properties/foo-prop",
3121
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/properties/foo-prop",
3123
3122
"instanceLocation": "/foo/foo-prop",
3124
3123
"errors": {
3125
3124
"const": "Expected \"1\""
@@ -3140,9 +3139,6 @@ https://example.com/schemas/common#/$defs/count/minimum
3140
3139
// passing results
3141
3140
{
3142
3141
"valid": true,
3143
- "evaluationPath": "",
3144
- "schemaLocation": "https://json-schema.org/schemas/example#",
3145
- "instanceLocation": "",
3146
3142
"nested": [
3147
3143
{
3148
3144
"valid": true,
@@ -3159,8 +3155,8 @@ https://example.com/schemas/common#/$defs/count/minimum
3159
3155
},
3160
3156
{
3161
3157
"valid": true,
3162
- "evaluationPath": "/properties/foo/1",
3163
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3158
+ "evaluationPath": "/properties/foo/allOf/ 1",
3159
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1",
3164
3160
"instanceLocation": "/foo",
3165
3161
"annotations": {
3166
3162
"title": "foo-title",
@@ -3186,8 +3182,8 @@ https://example.com/schemas/common#/$defs/count/minimum
3186
3182
},
3187
3183
{
3188
3184
"valid": true,
3189
- "evaluationPath": "/properties/foo/1/properties/foo-prop",
3190
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3185
+ "evaluationPath": "/properties/foo/allOf/ 1/properties/foo-prop",
3186
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/properties/foo-prop",
3191
3187
"instanceLocation": "/foo/foo-prop",
3192
3188
"annotations": {
3193
3189
"title": "foo-prop-title"
@@ -3220,8 +3216,7 @@ https://example.com/schemas/common#/$defs/count/minimum
3220
3216
All output units are included in this format.
3221
3217
</t >
3222
3218
<t >
3223
- The location properties of the output unit MAY be omitted from the
3224
- root node.
3219
+ The location properties of the root output unit MAY be omitted.
3225
3220
</t >
3226
3221
<figure >
3227
3222
<artwork >
@@ -3241,32 +3236,32 @@ https://example.com/schemas/common#/$defs/count/minimum
3241
3236
"nested": [
3242
3237
{
3243
3238
"valid": false,
3244
- "evaluationPath": "/properties/foo/0",
3245
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3239
+ "evaluationPath": "/properties/foo/allOf/ 0",
3240
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 0",
3246
3241
"instanceLocation": "/foo",
3247
3242
"errors": {
3248
3243
"required": "Required properties [\"unspecified-prop\"] were not present"
3249
3244
}
3250
3245
},
3251
3246
{
3252
3247
"valid": false,
3253
- "evaluationPath": "/properties/foo/1",
3254
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3248
+ "evaluationPath": "/properties/foo/allOf/ 1",
3249
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1",
3255
3250
"instanceLocation": "/foo",
3256
3251
"nested": [
3257
3252
{
3258
3253
"valid": false,
3259
- "evaluationPath": "/properties/foo/1/properties/foo-prop",
3260
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3254
+ "evaluationPath": "/properties/foo/allOf/ 1/properties/foo-prop",
3255
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/properties/foo-prop",
3261
3256
"instanceLocation": "/foo/foo-prop",
3262
3257
"errors": {
3263
3258
"const": "Expected \"1\""
3264
3259
}
3265
3260
},
3266
3261
{
3267
3262
"valid": true,
3268
- "evaluationPath": "/properties/foo/1/additionalProperties/other-prop ",
3269
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/additionalProperties/other-prop ",
3263
+ "evaluationPath": "/properties/foo/allOf/ 1/additionalProperties",
3264
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/additionalProperties",
3270
3265
"instanceLocation": "/foo/other-prop"
3271
3266
}
3272
3267
]
@@ -3323,14 +3318,14 @@ https://example.com/schemas/common#/$defs/count/minimum
3323
3318
"nested": [
3324
3319
{
3325
3320
"valid": true,
3326
- "evaluationPath": "/properties/foo/0",
3327
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3321
+ "evaluationPath": "/properties/foo/allOf/ 0",
3322
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 0",
3328
3323
"instanceLocation": "/foo"
3329
3324
},
3330
3325
{
3331
3326
"valid": true,
3332
- "evaluationPath": "/properties/foo/1",
3333
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3327
+ "evaluationPath": "/properties/foo/allOf/ 1",
3328
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1",
3334
3329
"instanceLocation": "/foo",
3335
3330
"annotations": {
3336
3331
"title": "foo-title",
@@ -3344,17 +3339,17 @@ https://example.com/schemas/common#/$defs/count/minimum
3344
3339
"nested": [
3345
3340
{
3346
3341
"valid": true,
3347
- "evaluationPath": "/properties/foo/1/properties/foo-prop",
3348
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3342
+ "evaluationPath": "/properties/foo/allOf/ 1/properties/foo-prop",
3343
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/properties/foo-prop",
3349
3344
"instanceLocation": "/foo/foo-prop",
3350
3345
"annotations": {
3351
3346
"title": "foo-prop-title"
3352
3347
}
3353
3348
},
3354
3349
{
3355
3350
"valid": true,
3356
- "evaluationPath": "/properties/foo/1/additionalProperties/unspecified-prop ",
3357
- "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/additionalProperties/unspecified-prop ",
3351
+ "evaluationPath": "/properties/foo/allOf/ 1/additionalProperties",
3352
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/allOf/ 1/additionalProperties",
3358
3353
"instanceLocation": "/foo/unspecified-prop"
3359
3354
}
3360
3355
]
0 commit comments