You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unsure if refs should use IDs instead of JSON Pointers everywhere, but IDs do seem to work.
The inconsistency between VSCode and ajv's validator wrt IDs is that ajv accepts ID as JSONValue instead of #JSONValue too, whereas VSCode does not. I cant find any mention of this on JSONSchema and think it might be VSCode which is wrong here.
Sample data
{}
What results did you expect?
This should be a valid case in JSON schema, because dictionaries are not sorted so it would be impossible to refer to a non-id anchor based def.
Are you going to resolve the issue?
I dont know
The text was updated successfully, but these errors were encountered:
What version of Ajv are you using? Does the issue happen if you use the latest version?
Yes
Ajv options object
CLI invocation
ajv validate -s test.schema.json -d test.json
JSON Schema
This schema would work complain that:
I am unsure if refs should use IDs instead of JSON Pointers everywhere, but IDs do seem to work.
The inconsistency between VSCode and ajv's validator wrt IDs is that ajv accepts ID as
JSONValue
instead of#JSONValue
too, whereas VSCode does not. I cant find any mention of this on JSONSchema and think it might be VSCode which is wrong here.Sample data
What results did you expect?
This should be a valid case in JSON schema, because dictionaries are not sorted so it would be impossible to refer to a non-id anchor based def.
Are you going to resolve the issue?
I dont know
The text was updated successfully, but these errors were encountered: