@@ -3049,32 +3049,35 @@ https://example.com/schemas/common#/$defs/count/minimum
3049
3049
// failing results
3050
3050
{
3051
3051
"valid": false,
3052
+ "evaluationPath": "",
3053
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3054
+ "instanceLocation": "",
3052
3055
"nested": [
3053
3056
{
3054
- "evaluationPath ": "/properties/foo/allOf/0" ,
3055
- "schemaLocation":
3056
- "https://json-schema.org/schemas/example#/properties/foo/allOf /0",
3057
+ "valid ": false ,
3058
+ "evaluationPath": "/properties/foo/0",
3059
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3057
3060
"instanceLocation": "/foo",
3058
3061
"errors": {
3059
- "type ": "Expected the property \"unspecified-prop\". "
3062
+ "required ": "Required properties [ \"unspecified-prop\"] were not present "
3060
3063
}
3061
3064
},
3062
3065
{
3063
- "evaluationPath ": "/properties/foo/allOf/1/properties/foo-prop" ,
3064
- "schemaLocation":
3065
- "https://json-schema.org/schemas/example#/properties/foo/allOf /1/properties/foo-prop",
3066
+ "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
3069
"instanceLocation": "/foo/foo-prop",
3067
3070
"errors": {
3068
- "type ": "Expected the value \"1\". "
3071
+ "const ": "Expected \"1\""
3069
3072
}
3070
3073
},
3071
3074
{
3075
+ "valid": false,
3072
3076
"evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3073
- "schemaLocation":
3074
- "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3077
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3075
3078
"instanceLocation": "/bar/bar-prop",
3076
3079
"errors": {
3077
- "type ": "Expected a value of type \"integer\". "
3080
+ "minimum ": "2 is less than or equal to 10 "
3078
3081
}
3079
3082
}
3080
3083
]
@@ -3083,65 +3086,63 @@ https://example.com/schemas/common#/$defs/count/minimum
3083
3086
// passing results
3084
3087
{
3085
3088
"valid": true,
3089
+ "evaluationPath": "",
3090
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3091
+ "instanceLocation": "",
3086
3092
"nested": [
3087
3093
{
3088
3094
"valid": true,
3089
3095
"evaluationPath": "",
3090
- "schemaLocation":
3091
- "https://json-schema.org/schemas/example#",
3096
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3092
3097
"instanceLocation": "",
3093
3098
"annotations": {
3094
3099
"title": "root",
3095
- "properties": [ "foo", "bar" ]
3100
+ "properties": [
3101
+ "foo",
3102
+ "bar"
3103
+ ]
3096
3104
}
3097
3105
},
3098
3106
{
3099
3107
"valid": true,
3100
- "evaluationPath": "/properties/foo",
3101
- "schemaLocation":
3102
- "https://json-schema.org/schemas/example#/properties/foo",
3108
+ "evaluationPath": "/properties/foo/1",
3109
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3103
3110
"instanceLocation": "/foo",
3104
3111
"annotations": {
3105
- "title": "foo-title"
3112
+ "title": "foo-title",
3113
+ "properties": [
3114
+ "foo-prop"
3115
+ ],
3116
+ "additionalProperties": [
3117
+ "unspecified-prop"
3118
+ ]
3106
3119
}
3107
3120
},
3108
3121
{
3109
3122
"valid": true,
3110
- "evaluationPath": "/properties/foo/allOf/1",
3111
- "schemaLocation":
3112
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1",
3113
- "instanceLocation": "/foo/foo-prop",
3123
+ "evaluationPath": "/properties/bar/$ref",
3124
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar",
3125
+ "instanceLocation": "/bar",
3114
3126
"annotations": {
3115
- "properties": [ "foo-prop" ],
3116
- "additionalProperties": [ "unspecified-prop" ]
3127
+ "title": "bar-title",
3128
+ "properties": [
3129
+ "bar-prop"
3130
+ ]
3117
3131
}
3118
3132
},
3119
3133
{
3120
3134
"valid": true,
3121
- "evaluationPath": "/properties/foo/allOf/1/properties/foo-prop",
3122
- "schemaLocation":
3123
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1/properties/foo-prop",
3135
+ "evaluationPath": "/properties/foo/1/properties/foo-prop",
3136
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3124
3137
"instanceLocation": "/foo/foo-prop",
3125
3138
"annotations": {
3126
3139
"title": "foo-prop-title"
3127
3140
}
3128
3141
},
3129
- {
3130
- "valid": true,
3131
- "evaluationPath": "/properties/bar/$ref",
3132
- "schemaLocation":
3133
- "https://json-schema.org/schemas/example#/$defs/bar",
3134
- "instanceLocation": "/bar",
3135
- "annotations": {
3136
- "title": "bar-title",
3137
- "properties": [ "bar-prop" ]
3138
- }
3139
- },
3140
3142
{
3141
3143
"valid": true,
3142
3144
"evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3143
- "schemaLocation":
3144
- "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3145
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3145
3146
"instanceLocation": "/bar/bar-prop",
3146
3147
"annotations": {
3147
3148
"title": "bar-prop-title"
@@ -3173,122 +3174,134 @@ https://example.com/schemas/common#/$defs/count/minimum
3173
3174
<![CDATA[
3174
3175
// failing results (errors)
3175
3176
{
3176
- "valid": false,
3177
- "nested": [
3178
- {
3179
- "valid": false,
3180
- "evaluationPath": "/properties/foo",
3181
- "schemaLocation":
3182
- "https://json-schema.org/schemas/example#/properties/foo",
3183
- "instanceLocation": "/foo",
3184
- "nested": [
3185
- {
3186
- "valid": false,
3187
- "evaluationPath": "/properties/foo/allOf/0",
3188
- "schemaLocation":
3189
- "https://json-schema.org/schemas/example#/properties/foo/allOf/0",
3190
- "instanceLocation": "/foo",
3191
- "errors": {
3192
- "required": "Expected the property \"unspecified-prop\"."
3193
- }
3194
- },
3195
- {
3196
- "valid": false,
3197
- "evaluationPath": "/properties/foo/allOf/1",
3198
- "schemaLocation":
3199
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1",
3200
- "instanceLocation": "/foo/foo-prop",
3201
- "nested": [
3202
- {
3203
- "valid": false,
3204
- "evaluationPath": "/properties/foo/allOf/1/properties/foo-prop",
3205
- "schemaLocation":
3206
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1/properties/foo-prop",
3207
- "instanceLocation": "/foo/foo-prop",
3208
- "errors": {
3209
- "const": "Expected the value \"1\"."
3210
- }
3211
- }
3212
- ]
3177
+ "valid": false,
3178
+ "evaluationPath": "",
3179
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3180
+ "instanceLocation": "",
3181
+ "nested": [
3182
+ {
3183
+ "valid": false,
3184
+ "evaluationPath": "/properties/foo",
3185
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo",
3186
+ "instanceLocation": "/foo",
3187
+ "nested": [
3188
+ {
3189
+ "valid": false,
3190
+ "evaluationPath": "/properties/foo/0",
3191
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3192
+ "instanceLocation": "/foo",
3193
+ "errors": {
3194
+ "required": "Required properties [\"unspecified-prop\"] were not present"
3213
3195
}
3214
- ]
3215
- },
3216
- {
3217
- "valid": false,
3218
- "evaluationPath": "/properties/bar",
3219
- "schemaLocation":
3220
- "https://json-schema.org/schemas/example#/properties/bar",
3221
- "instanceLocation": "/bar",
3222
- "nested": [
3223
- {
3224
- "valid": false,
3225
- "evaluationPath": "/properties/bar/$ref",
3226
- "schemaLocation":
3227
- "https://json-schema.org/schemas/example#/$defs/bar",
3228
- "instanceLocation": "/bar",
3229
- "nested": [
3230
- {
3231
- "valid": false,
3232
- "evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3233
- "schemaLocation":
3234
- "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3235
- "instanceLocation": "/bar/bar-prop",
3236
- "errors": {
3237
- "type": "Expected a value of type \"integer\"."
3238
- }
3196
+ },
3197
+ {
3198
+ "valid": false,
3199
+ "evaluationPath": "/properties/foo/1",
3200
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3201
+ "instanceLocation": "/foo",
3202
+ "nested": [
3203
+ {
3204
+ "valid": false,
3205
+ "evaluationPath": "/properties/foo/1/properties/foo-prop",
3206
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3207
+ "instanceLocation": "/foo/foo-prop",
3208
+ "errors": {
3209
+ "const": "Expected \"1\""
3239
3210
}
3240
- ]
3241
- }
3242
- ]
3243
- }
3244
- ]
3245
- }
3211
+ },
3212
+ {
3213
+ "valid": true,
3214
+ "evaluationPath": "/properties/foo/1/additionalProperties/other-prop",
3215
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/additionalProperties/other-prop",
3216
+ "instanceLocation": "/foo/other-prop"
3217
+ }
3218
+ ]
3219
+ }
3220
+ ]
3221
+ },
3222
+ {
3223
+ "valid": false,
3224
+ "evaluationPath": "/properties/bar",
3225
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/bar",
3226
+ "instanceLocation": "/bar",
3227
+ "nested": [
3228
+ {
3229
+ "valid": false,
3230
+ "evaluationPath": "/properties/bar/$ref",
3231
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar",
3232
+ "instanceLocation": "/bar",
3233
+ "nested": [
3234
+ {
3235
+ "valid": false,
3236
+ "evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3237
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3238
+ "instanceLocation": "/bar/bar-prop",
3239
+ "errors": {
3240
+ "minimum": "2 is less than or equal to 10"
3241
+ }
3242
+ }
3243
+ ]
3244
+ }
3245
+ ]
3246
+ }
3247
+ ]
3248
+ }
3246
3249
3247
- // passing results (annotations)
3248
- {
3250
+ // passing results (annotations)
3251
+ {
3249
3252
"valid": true,
3253
+ "evaluationPath": "",
3254
+ "schemaLocation": "https://json-schema.org/schemas/example#",
3255
+ "instanceLocation": "",
3250
3256
"annotations": {
3251
3257
"title": "root",
3252
- "properties": [ "foo", "bar" ]
3258
+ "properties": [
3259
+ "foo",
3260
+ "bar"
3261
+ ]
3253
3262
},
3254
3263
"nested": [
3255
3264
{
3256
3265
"valid": true,
3257
3266
"evaluationPath": "/properties/foo",
3258
- "schemaLocation":
3259
- "https://json-schema.org/schemas/example#/properties/foo",
3267
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo",
3260
3268
"instanceLocation": "/foo",
3261
- "annotations": {
3262
- "title": "foo-title"
3263
- },
3264
3269
"nested": [
3265
3270
{
3266
3271
"valid": true,
3267
- "evaluationPath": "/properties/foo/allOf/0",
3268
- "schemaLocation":
3269
- "https://json-schema.org/schemas/example#/properties/foo/allOf/0",
3272
+ "evaluationPath": "/properties/foo/0",
3273
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/0",
3270
3274
"instanceLocation": "/foo"
3271
3275
},
3272
3276
{
3273
3277
"valid": true,
3274
- "evaluationPath": "/properties/foo/allOf/1",
3275
- "schemaLocation":
3276
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1",
3277
- "instanceLocation": "/foo/foo-prop",
3278
+ "evaluationPath": "/properties/foo/1",
3279
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1",
3280
+ "instanceLocation": "/foo",
3278
3281
"annotations": {
3279
- "properties": [ "foo-prop" ],
3280
- "additionalProperties": [ "unspecified-prop" ]
3282
+ "title": "foo-title",
3283
+ "properties": [
3284
+ "foo-prop"
3285
+ ],
3286
+ "additionalProperties": [
3287
+ "unspecified-prop"
3288
+ ]
3281
3289
},
3282
3290
"nested": [
3283
3291
{
3284
3292
"valid": true,
3285
- "evaluationPath": "/properties/foo/allOf/1/properties/foo-prop",
3286
- "schemaLocation":
3287
- "https://json-schema.org/schemas/example#/properties/foo/allOf/1/properties/foo-prop",
3293
+ "evaluationPath": "/properties/foo/1/properties/foo-prop",
3294
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/properties/foo-prop",
3288
3295
"instanceLocation": "/foo/foo-prop",
3289
3296
"annotations": {
3290
3297
"title": "foo-prop-title"
3291
3298
}
3299
+ },
3300
+ {
3301
+ "valid": true,
3302
+ "evaluationPath": "/properties/foo/1/additionalProperties/unspecified-prop",
3303
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo/1/additionalProperties/unspecified-prop",
3304
+ "instanceLocation": "/foo/unspecified-prop"
3292
3305
}
3293
3306
]
3294
3307
}
@@ -3297,26 +3310,25 @@ https://example.com/schemas/common#/$defs/count/minimum
3297
3310
{
3298
3311
"valid": true,
3299
3312
"evaluationPath": "/properties/bar",
3300
- "schemaLocation":
3301
- "https://json-schema.org/schemas/example#/properties/bar",
3313
+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/bar",
3302
3314
"instanceLocation": "/bar",
3303
3315
"nested": [
3304
3316
{
3305
3317
"valid": true,
3306
3318
"evaluationPath": "/properties/bar/$ref",
3307
- "schemaLocation":
3308
- "https://json-schema.org/schemas/example#/$defs/bar",
3319
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar",
3309
3320
"instanceLocation": "/bar",
3310
3321
"annotations": {
3311
3322
"title": "bar-title",
3312
- "properties": [ "bar-prop" ]
3323
+ "properties": [
3324
+ "bar-prop"
3325
+ ]
3313
3326
},
3314
3327
"nested": [
3315
3328
{
3316
3329
"valid": true,
3317
3330
"evaluationPath": "/properties/bar/$ref/properties/bar-prop",
3318
- "schemaLocation":
3319
- "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3331
+ "schemaLocation": "https://json-schema.org/schemas/example#/$defs/bar/properties/bar-prop",
3320
3332
"instanceLocation": "/bar/bar-prop",
3321
3333
"annotations": {
3322
3334
"title": "bar-prop-title"
0 commit comments