@@ -3103,32 +3103,35 @@ https://example.com/schemas/common#/$defs/count/minimum
3103
3103
// failing results
3104
3104
{
3105
3105
"valid": false,
3106
+ "evaluationPath": "",
3107
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3108
+ "instanceLocation": "",
3106
3109
"nested": [
3107
3110
{
3108
- "evaluationPath ": "/properties/foo/allOf/0" ,
3109
- "schemaLocation":
3110
- "https://json-schema.org/schemas/example#/properties/foo/allOf /0",
3111
+ "valid ": false ,
3112
+ "evaluationPath": "/properties/foo/0",
3113
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3111
3114
"instanceLocation": "/foo",
3112
3115
"errors": {
3113
- "type ": "Expected the property \"unspecified-prop\". "
3116
+ "required ": "Required properties [ \"unspecified-prop\"] were not present "
3114
3117
}
3115
3118
},
3116
3119
{
3117
- "evaluationPath ": "/properties/foo/allOf/1/properties/foo-prop" ,
3118
- "schemaLocation":
3119
- "https://json-schema.org/schemas/example#/properties/foo/allOf /1/properties/foo-prop",
3120
+ "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
3123
"instanceLocation": "/foo/foo-prop",
3121
3124
"errors": {
3122
- "type ": "Expected the value \"1\". "
3125
+ "const ": "Expected \"1\""
3123
3126
}
3124
3127
},
3125
3128
{
3129
+ "valid": false,
3126
3130
"evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3127
- "schemaLocation":
3128
- "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3131
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3129
3132
"instanceLocation": "/bar/bar-prop",
3130
3133
"errors": {
3131
- "type ": "Expected a value of type \"integer\". "
3134
+ "minimum ": "2 is less than or equal to 10 "
3132
3135
}
3133
3136
}
3134
3137
]
@@ -3137,65 +3140,63 @@ https://example.com/schemas/common#/$defs/count/minimum
3137
3140
// passing results
3138
3141
{
3139
3142
"valid": true,
3143
+ "evaluationPath": "",
3144
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3145
+ "instanceLocation": "",
3140
3146
"nested": [
3141
3147
{
3142
3148
"valid": true,
3143
3149
"evaluationPath": "",
3144
- "schemaLocation":
3145
- "https://json-schema.org/schemas/example#",
3150
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3146
3151
"instanceLocation": "",
3147
3152
"annotations": {
3148
3153
"title": "root",
3149
- "properties": [ "foo", "bar" ]
3154
+ "properties": [
3155
+ "foo",
3156
+ "bar"
3157
+ ]
3150
3158
}
3151
3159
},
3152
3160
{
3153
3161
"valid": true,
3154
- "evaluationPath": "/properties/foo",
3155
- "schemaLocation":
3156
- "https://json-schema.org/schemas/example#/properties/foo",
3162
+ "evaluationPath": "/properties/foo/1",
3163
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3157
3164
"instanceLocation": "/foo",
3158
3165
"annotations": {
3159
- "title": "foo-title"
3166
+ "title": "foo-title",
3167
+ "properties": [
3168
+ "foo-prop"
3169
+ ],
3170
+ "additionalProperties": [
3171
+ "unspecified-prop"
3172
+ ]
3160
3173
}
3161
3174
},
3162
3175
{
3163
3176
"valid": true,
3164
- "evaluationPath": "/properties/foo/allOf/1",
3165
- "schemaLocation":
3166
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1",
3167
- "instanceLocation": "/foo/foo-prop",
3177
+ "evaluationPath": "/properties/bar/$ref",
3178
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar",
3179
+ "instanceLocation": "/bar",
3168
3180
"annotations": {
3169
- "properties": [ "foo-prop" ],
3170
- "additionalProperties": [ "unspecified-prop" ]
3181
+ "title": "bar-title",
3182
+ "properties": [
3183
+ "bar-prop"
3184
+ ]
3171
3185
}
3172
3186
},
3173
3187
{
3174
3188
"valid": true,
3175
- "evaluationPath": "/properties/foo/allOf/1/properties/foo-prop",
3176
- "schemaLocation":
3177
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1/properties/foo-prop",
3189
+ "evaluationPath": "/properties/foo/1/properties/foo-prop",
3190
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3178
3191
"instanceLocation": "/foo/foo-prop",
3179
3192
"annotations": {
3180
3193
"title": "foo-prop-title"
3181
3194
}
3182
3195
},
3183
- {
3184
- "valid": true,
3185
- "evaluationPath": "/properties/bar/$ref",
3186
- "schemaLocation":
3187
- "https://json-schema.org/schemas/example#/$defs/bar",
3188
- "instanceLocation": "/bar",
3189
- "annotations": {
3190
- "title": "bar-title",
3191
- "properties": [ "bar-prop" ]
3192
- }
3193
- },
3194
3196
{
3195
3197
"valid": true,
3196
3198
"evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3197
- "schemaLocation":
3198
- "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3199
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3199
3200
"instanceLocation": "/bar/bar-prop",
3200
3201
"annotations": {
3201
3202
"title": "bar-prop-title"
@@ -3227,122 +3228,134 @@ https://example.com/schemas/common#/$defs/count/minimum
3227
3228
<![CDATA[
3228
3229
// failing results (errors)
3229
3230
{
3230
- "valid": false,
3231
- "nested": [
3232
- {
3233
- "valid": false,
3234
- "evaluationPath": "/properties/foo",
3235
- "schemaLocation":
3236
- "https://json-schema.org/schemas/example#/properties/foo",
3237
- "instanceLocation": "/foo",
3238
- "nested": [
3239
- {
3240
- "valid": false,
3241
- "evaluationPath": "/properties/foo/allOf/0",
3242
- "schemaLocation":
3243
- "https://json-schema.org/schemas/example#/properties/foo/allOf/0",
3244
- "instanceLocation": "/foo",
3245
- "errors": {
3246
- "required": "Expected the property \"unspecified-prop\"."
3247
- }
3248
- },
3249
- {
3250
- "valid": false,
3251
- "evaluationPath": "/properties/foo/allOf/1",
3252
- "schemaLocation":
3253
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1",
3254
- "instanceLocation": "/foo/foo-prop",
3255
- "nested": [
3256
- {
3257
- "valid": false,
3258
- "evaluationPath": "/properties/foo/allOf/1/properties/foo-prop",
3259
- "schemaLocation":
3260
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1/properties/foo-prop",
3261
- "instanceLocation": "/foo/foo-prop",
3262
- "errors": {
3263
- "const": "Expected the value \"1\"."
3264
- }
3265
- }
3266
- ]
3231
+ "valid": false,
3232
+ "evaluationPath": "",
3233
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3234
+ "instanceLocation": "",
3235
+ "nested": [
3236
+ {
3237
+ "valid": false,
3238
+ "evaluationPath": "/properties/foo",
3239
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo",
3240
+ "instanceLocation": "/foo",
3241
+ "nested": [
3242
+ {
3243
+ "valid": false,
3244
+ "evaluationPath": "/properties/foo/0",
3245
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3246
+ "instanceLocation": "/foo",
3247
+ "errors": {
3248
+ "required": "Required properties [\"unspecified-prop\"] were not present"
3267
3249
}
3268
- ]
3269
- },
3270
- {
3271
- "valid": false,
3272
- "evaluationPath": "/properties/bar",
3273
- "schemaLocation":
3274
- "https://json-schema.org/schemas/example#/properties/bar",
3275
- "instanceLocation": "/bar",
3276
- "nested": [
3277
- {
3278
- "valid": false,
3279
- "evaluationPath": "/properties/bar/$ref",
3280
- "schemaLocation":
3281
- "https://json-schema.org/schemas/example#/$defs/bar",
3282
- "instanceLocation": "/bar",
3283
- "nested": [
3284
- {
3285
- "valid": false,
3286
- "evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3287
- "schemaLocation":
3288
- "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3289
- "instanceLocation": "/bar/bar-prop",
3290
- "errors": {
3291
- "type": "Expected a value of type \"integer\"."
3292
- }
3250
+ },
3251
+ {
3252
+ "valid": false,
3253
+ "evaluationPath": "/properties/foo/1",
3254
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3255
+ "instanceLocation": "/foo",
3256
+ "nested": [
3257
+ {
3258
+ "valid": false,
3259
+ "evaluationPath": "/properties/foo/1/properties/foo-prop",
3260
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3261
+ "instanceLocation": "/foo/foo-prop",
3262
+ "errors": {
3263
+ "const": "Expected \"1\""
3293
3264
}
3294
- ]
3295
- }
3296
- ]
3297
- }
3298
- ]
3299
- }
3265
+ },
3266
+ {
3267
+ "valid": true,
3268
+ "evaluationPath": "/properties/foo/1/additionalProperties/other-prop",
3269
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/additionalProperties/other-prop",
3270
+ "instanceLocation": "/foo/other-prop"
3271
+ }
3272
+ ]
3273
+ }
3274
+ ]
3275
+ },
3276
+ {
3277
+ "valid": false,
3278
+ "evaluationPath": "/properties/bar",
3279
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/bar",
3280
+ "instanceLocation": "/bar",
3281
+ "nested": [
3282
+ {
3283
+ "valid": false,
3284
+ "evaluationPath": "/properties/bar/$ref",
3285
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar",
3286
+ "instanceLocation": "/bar",
3287
+ "nested": [
3288
+ {
3289
+ "valid": false,
3290
+ "evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3291
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3292
+ "instanceLocation": "/bar/bar-prop",
3293
+ "errors": {
3294
+ "minimum": "2 is less than or equal to 10"
3295
+ }
3296
+ }
3297
+ ]
3298
+ }
3299
+ ]
3300
+ }
3301
+ ]
3302
+ }
3300
3303
3301
- // passing results (annotations)
3302
- {
3304
+ // passing results (annotations)
3305
+ {
3303
3306
"valid": true,
3307
+ "evaluationPath": "",
3308
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3309
+ "instanceLocation": "",
3304
3310
"annotations": {
3305
3311
"title": "root",
3306
- "properties": [ "foo", "bar" ]
3312
+ "properties": [
3313
+ "foo",
3314
+ "bar"
3315
+ ]
3307
3316
},
3308
3317
"nested": [
3309
3318
{
3310
3319
"valid": true,
3311
3320
"evaluationPath": "/properties/foo",
3312
- "schemaLocation":
3313
- "https://json-schema.org/schemas/example#/properties/foo",
3321
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo",
3314
3322
"instanceLocation": "/foo",
3315
- "annotations": {
3316
- "title": "foo-title"
3317
- },
3318
3323
"nested": [
3319
3324
{
3320
3325
"valid": true,
3321
- "evaluationPath": "/properties/foo/allOf/0",
3322
- "schemaLocation":
3323
- "https://json-schema.org/schemas/example#/properties/foo/allOf/0",
3326
+ "evaluationPath": "/properties/foo/0",
3327
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3324
3328
"instanceLocation": "/foo"
3325
3329
},
3326
3330
{
3327
3331
"valid": true,
3328
- "evaluationPath": "/properties/foo/allOf/1",
3329
- "schemaLocation":
3330
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1",
3331
- "instanceLocation": "/foo/foo-prop",
3332
+ "evaluationPath": "/properties/foo/1",
3333
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3334
+ "instanceLocation": "/foo",
3332
3335
"annotations": {
3333
- "properties": [ "foo-prop" ],
3334
- "additionalProperties": [ "unspecified-prop" ]
3336
+ "title": "foo-title",
3337
+ "properties": [
3338
+ "foo-prop"
3339
+ ],
3340
+ "additionalProperties": [
3341
+ "unspecified-prop"
3342
+ ]
3335
3343
},
3336
3344
"nested": [
3337
3345
{
3338
3346
"valid": true,
3339
- "evaluationPath": "/properties/foo/allOf/1/properties/foo-prop",
3340
- "schemaLocation":
3341
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1/properties/foo-prop",
3347
+ "evaluationPath": "/properties/foo/1/properties/foo-prop",
3348
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3342
3349
"instanceLocation": "/foo/foo-prop",
3343
3350
"annotations": {
3344
3351
"title": "foo-prop-title"
3345
3352
}
3353
+ },
3354
+ {
3355
+ "valid": true,
3356
+ "evaluationPath": "/properties/foo/1/additionalProperties/unspecified-prop",
3357
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/additionalProperties/unspecified-prop",
3358
+ "instanceLocation": "/foo/unspecified-prop"
3346
3359
}
3347
3360
]
3348
3361
}
@@ -3351,26 +3364,25 @@ https://example.com/schemas/common#/$defs/count/minimum
3351
3364
{
3352
3365
"valid": true,
3353
3366
"evaluationPath": "/properties/bar",
3354
- "schemaLocation":
3355
- "https://json-schema.org/schemas/example#/properties/bar",
3367
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/bar",
3356
3368
"instanceLocation": "/bar",
3357
3369
"nested": [
3358
3370
{
3359
3371
"valid": true,
3360
3372
"evaluationPath": "/properties/bar/$ref",
3361
- "schemaLocation":
3362
- "https://json-schema.org/schemas/example#/$defs/bar",
3373
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar",
3363
3374
"instanceLocation": "/bar",
3364
3375
"annotations": {
3365
3376
"title": "bar-title",
3366
- "properties": [ "bar-prop" ]
3377
+ "properties": [
3378
+ "bar-prop"
3379
+ ]
3367
3380
},
3368
3381
"nested": [
3369
3382
{
3370
3383
"valid": true,
3371
3384
"evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3372
- "schemaLocation":
3373
- "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3385
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3374
3386
"instanceLocation": "/bar/bar-prop",
3375
3387
"annotations": {
3376
3388
"title": "bar-prop-title"
0 commit comments