@@ -3049,32 +3049,35 @@ https://example.com/schemas/common#/$defs/count/minimum
30493049// failing results
30503050{
30513051 "valid": false,
3052+ "evaluationPath": "",
3053+ "schemaLocation": "https://json-schema.org/schemas/example#",
3054+ "instanceLocation": "",
30523055 "nested": [
30533056 {
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",
30573060 "instanceLocation": "/foo",
30583061 "errors": {
3059- "type ": "Expected the property \"unspecified-prop\". "
3062+ "required ": "Required properties [ \"unspecified-prop\"] were not present "
30603063 }
30613064 },
30623065 {
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",
30663069 "instanceLocation": "/foo/foo-prop",
30673070 "errors": {
3068- "type ": "Expected the value \"1\". "
3071+ "const ": "Expected \"1\""
30693072 }
30703073 },
30713074 {
3075+ "valid": false,
30723076 "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",
30753078 "instanceLocation": "/bar/bar-prop",
30763079 "errors": {
3077- "type ": "Expected a value of type \"integer\". "
3080+ "minimum ": "2 is less than or equal to 10 "
30783081 }
30793082 }
30803083 ]
@@ -3083,65 +3086,63 @@ https://example.com/schemas/common#/$defs/count/minimum
30833086// passing results
30843087{
30853088 "valid": true,
3089+ "evaluationPath": "",
3090+ "schemaLocation": "https://json-schema.org/schemas/example#",
3091+ "instanceLocation": "",
30863092 "nested": [
30873093 {
30883094 "valid": true,
30893095 "evaluationPath": "",
3090- "schemaLocation":
3091- "https://json-schema.org/schemas/example#",
3096+ "schemaLocation": "https://json-schema.org/schemas/example#",
30923097 "instanceLocation": "",
30933098 "annotations": {
30943099 "title": "root",
3095- "properties": [ "foo", "bar" ]
3100+ "properties": [
3101+ "foo",
3102+ "bar"
3103+ ]
30963104 }
30973105 },
30983106 {
30993107 "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",
31033110 "instanceLocation": "/foo",
31043111 "annotations": {
3105- "title": "foo-title"
3112+ "title": "foo-title",
3113+ "properties": [
3114+ "foo-prop"
3115+ ],
3116+ "additionalProperties": [
3117+ "unspecified-prop"
3118+ ]
31063119 }
31073120 },
31083121 {
31093122 "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",
31143126 "annotations": {
3115- "properties": [ "foo-prop" ],
3116- "additionalProperties": [ "unspecified-prop" ]
3127+ "title": "bar-title",
3128+ "properties": [
3129+ "bar-prop"
3130+ ]
31173131 }
31183132 },
31193133 {
31203134 "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",
31243137 "instanceLocation": "/foo/foo-prop",
31253138 "annotations": {
31263139 "title": "foo-prop-title"
31273140 }
31283141 },
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- },
31403142 {
31413143 "valid": true,
31423144 "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",
31453146 "instanceLocation": "/bar/bar-prop",
31463147 "annotations": {
31473148 "title": "bar-prop-title"
@@ -3173,122 +3174,134 @@ https://example.com/schemas/common#/$defs/count/minimum
31733174<![CDATA[
31743175// failing results (errors)
31753176{
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"
32133195 }
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\""
32393210 }
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+ }
32463249
3247- // passing results (annotations)
3248- {
3250+ // passing results (annotations)
3251+ {
32493252 "valid": true,
3253+ "evaluationPath": "",
3254+ "schemaLocation": "https://json-schema.org/schemas/example#",
3255+ "instanceLocation": "",
32503256 "annotations": {
32513257 "title": "root",
3252- "properties": [ "foo", "bar" ]
3258+ "properties": [
3259+ "foo",
3260+ "bar"
3261+ ]
32533262 },
32543263 "nested": [
32553264 {
32563265 "valid": true,
32573266 "evaluationPath": "/properties/foo",
3258- "schemaLocation":
3259- "https://json-schema.org/schemas/example#/properties/foo",
3267+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/foo",
32603268 "instanceLocation": "/foo",
3261- "annotations": {
3262- "title": "foo-title"
3263- },
32643269 "nested": [
32653270 {
32663271 "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",
32703274 "instanceLocation": "/foo"
32713275 },
32723276 {
32733277 "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",
32783281 "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+ ]
32813289 },
32823290 "nested": [
32833291 {
32843292 "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",
32883295 "instanceLocation": "/foo/foo-prop",
32893296 "annotations": {
32903297 "title": "foo-prop-title"
32913298 }
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"
32923305 }
32933306 ]
32943307 }
@@ -3297,26 +3310,25 @@ https://example.com/schemas/common#/$defs/count/minimum
32973310 {
32983311 "valid": true,
32993312 "evaluationPath": "/properties/bar",
3300- "schemaLocation":
3301- "https://json-schema.org/schemas/example#/properties/bar",
3313+ "schemaLocation": "https://json-schema.org/schemas/example#/properties/bar",
33023314 "instanceLocation": "/bar",
33033315 "nested": [
33043316 {
33053317 "valid": true,
33063318 "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",
33093320 "instanceLocation": "/bar",
33103321 "annotations": {
33113322 "title": "bar-title",
3312- "properties": [ "bar-prop" ]
3323+ "properties": [
3324+ "bar-prop"
3325+ ]
33133326 },
33143327 "nested": [
33153328 {
33163329 "valid": true,
33173330 "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",
33203332 "instanceLocation": "/bar/bar-prop",
33213333 "annotations": {
33223334 "title": "bar-prop-title"
0 commit comments