@@ -3103,32 +3103,35 @@ https://example.com/schemas/common#/$defs/count/minimum
31033103// failing results
31043104{
31053105 "valid": false,
3106+ "evaluationPath": "",
3107+ "schemaLocation": "https://json-schema.org/schemas/example#",
3108+ "instanceLocation": "",
31063109 "nested": [
31073110 {
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",
31113114 "instanceLocation": "/foo",
31123115 "errors": {
3113- "type ": "Expected the property \"unspecified-prop\". "
3116+ "required ": "Required properties [ \"unspecified-prop\"] were not present "
31143117 }
31153118 },
31163119 {
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",
31203123 "instanceLocation": "/foo/foo-prop",
31213124 "errors": {
3122- "type ": "Expected the value \"1\". "
3125+ "const ": "Expected \"1\""
31233126 }
31243127 },
31253128 {
3129+ "valid": false,
31263130 "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",
31293132 "instanceLocation": "/bar/bar-prop",
31303133 "errors": {
3131- "type ": "Expected a value of type \"integer\". "
3134+ "minimum ": "2 is less than or equal to 10 "
31323135 }
31333136 }
31343137 ]
@@ -3137,65 +3140,63 @@ https://example.com/schemas/common#/$defs/count/minimum
31373140// passing results
31383141{
31393142 "valid": true,
3143+ "evaluationPath": "",
3144+ "schemaLocation": "https://json-schema.org/schemas/example#",
3145+ "instanceLocation": "",
31403146 "nested": [
31413147 {
31423148 "valid": true,
31433149 "evaluationPath": "",
3144- "schemaLocation":
3145- "https://json-schema.org/schemas/example#",
3150+ "schemaLocation": "https://json-schema.org/schemas/example#",
31463151 "instanceLocation": "",
31473152 "annotations": {
31483153 "title": "root",
3149- "properties": [ "foo", "bar" ]
3154+ "properties": [
3155+ "foo",
3156+ "bar"
3157+ ]
31503158 }
31513159 },
31523160 {
31533161 "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",
31573164 "instanceLocation": "/foo",
31583165 "annotations": {
3159- "title": "foo-title"
3166+ "title": "foo-title",
3167+ "properties": [
3168+ "foo-prop"
3169+ ],
3170+ "additionalProperties": [
3171+ "unspecified-prop"
3172+ ]
31603173 }
31613174 },
31623175 {
31633176 "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",
31683180 "annotations": {
3169- "properties": [ "foo-prop" ],
3170- "additionalProperties": [ "unspecified-prop" ]
3181+ "title": "bar-title",
3182+ "properties": [
3183+ "bar-prop"
3184+ ]
31713185 }
31723186 },
31733187 {
31743188 "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",
31783191 "instanceLocation": "/foo/foo-prop",
31793192 "annotations": {
31803193 "title": "foo-prop-title"
31813194 }
31823195 },
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- },
31943196 {
31953197 "valid": true,
31963198 "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",
31993200 "instanceLocation": "/bar/bar-prop",
32003201 "annotations": {
32013202 "title": "bar-prop-title"
@@ -3227,122 +3228,134 @@ https://example.com/schemas/common#/$defs/count/minimum
32273228<![CDATA[
32283229// failing results (errors)
32293230{
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"
32673249 }
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\""
32933264 }
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+ }
33003303
3301- // passing results (annotations)
3302- {
3304+ // passing results (annotations)
3305+ {
33033306 "valid": true,
3307+ "evaluationPath": "",
3308+ "schemaLocation": "https://json-schema.org/schemas/example#",
3309+ "instanceLocation": "",
33043310 "annotations": {
33053311 "title": "root",
3306- "properties": [ "foo", "bar" ]
3312+ "properties": [
3313+ "foo",
3314+ "bar"
3315+ ]
33073316 },
33083317 "nested": [
33093318 {
33103319 "valid": true,
33113320 "evaluationPath": "/properties/foo",
3312- "schemaLocation":
3313- "https://json-schema.org/schemas/example#/properties/foo",
3321+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo",
33143322 "instanceLocation": "/foo",
3315- "annotations": {
3316- "title": "foo-title"
3317- },
33183323 "nested": [
33193324 {
33203325 "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",
33243328 "instanceLocation": "/foo"
33253329 },
33263330 {
33273331 "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",
33323335 "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+ ]
33353343 },
33363344 "nested": [
33373345 {
33383346 "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",
33423349 "instanceLocation": "/foo/foo-prop",
33433350 "annotations": {
33443351 "title": "foo-prop-title"
33453352 }
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"
33463359 }
33473360 ]
33483361 }
@@ -3351,26 +3364,25 @@ https://example.com/schemas/common#/$defs/count/minimum
33513364 {
33523365 "valid": true,
33533366 "evaluationPath": "/properties/bar",
3354- "schemaLocation":
3355- "https://json-schema.org/schemas/example#/properties/bar",
3367+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/bar",
33563368 "instanceLocation": "/bar",
33573369 "nested": [
33583370 {
33593371 "valid": true,
33603372 "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",
33633374 "instanceLocation": "/bar",
33643375 "annotations": {
33653376 "title": "bar-title",
3366- "properties": [ "bar-prop" ]
3377+ "properties": [
3378+ "bar-prop"
3379+ ]
33673380 },
33683381 "nested": [
33693382 {
33703383 "valid": true,
33713384 "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",
33743386 "instanceLocation": "/bar/bar-prop",
33753387 "annotations": {
33763388 "title": "bar-prop-title"
0 commit comments