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
Per my reading of the anchors spec the below should pass validation, and [https://www.jsonschemavalidator.net/s/tOTgHWLN](other validators seem to agree).
The intent is "the value of a property should be (something), or an array of (something)s".
I haven't been following the developments of JSON Schema lately. Looking at the release notes, it appears $anchors were added in the 2019-09 draft. Unfortunately, that's one version newer than what's supported by xeipuuv/gojsonschema which is what yajsv depends on.
I found an open issue (xeipuuv/gojsonschema#289) about adding support for 2019-09. That references some alternative libraries that could be options to use here. I'll have to dig into that when I have some time.
At a minimum, yajsv could check the value of the $schema key then warn and/or error if it's not supported. Depends on if 2019-09 is at least partially backward compatible with earlier versions.
Per my reading of the anchors spec the below should pass validation, and [https://www.jsonschemavalidator.net/s/tOTgHWLN](other validators seem to agree).
The intent is "the value of a property should be (something), or an array of (something)s".
Schema:
File:
yajsv reports:
The text was updated successfully, but these errors were encountered: