-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I have the following schema
and following data
[1,2,3]
Now when I validate the schema, the I get the following error
{"keyword":"https://json-schema.org/keyword/items","absoluteKeywordLocation":"http://example.com/schemas/string#/items","instanceLocation":"#","valid":false,
"errors":[{"keyword":"https://json-schema.org/evaluation/validate","absoluteKeywordLocation":"http://example.com/schemas/string#/items","instanceLocation":"#/0","valid":false,
"errors":[{"keyword":"https://json-schema.org/keyword/type","absoluteKeywordLocation":"http://example.com/schemas/string#/items/type","instanceLocation":"#/0","valid":false,"errors":[]}]}]}
My code
What I am looking for is a descriptive error similar to what cfworker/json-schema throws
Items did not match schema. Instance type "number" is invalid. Expected "string".
Metadata
Metadata
Assignees
Labels
No labels