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
Hi. Your schema doesn't use $schema to declare what version of the spec it's written for, so you're comparing behavior across different versions of the spec.
Indeed in draft 7 what you have is fine, but in newer drafts it isn't, as doing what you have there now uses prefixItems rather than items.
You should be setting $schema or at least if not, directly using a validator for the version you intend to use. And if that's draft2020-12, prefixItems.
The schema in the example below can be used to validate the instance without problems in jsonschema 3.2, but when using 4.0.1 it gives a schema error.
Output:
The text was updated successfully, but these errors were encountered: