Skip to content

concerns with order of evaluation with unevaluated* keywords #1047

Closed
@karenetheridge

Description

@karenetheridge

The spec (https://json-schema.org/draft/preview/2020-12-rc-1/jsonschema-core.html#rfc.section.11.1) says, regarding unevaluatedItems:

This means that "prefixItems", "items", "contains", and all in-place applicators MUST be evaluated before this keyword can be evaluated. Authors of extension keywords MUST NOT define an in-place applicator that would need to be evaluated before this keyword.

If I wanted to create a new applicator keyword "twoOf", and it is evaluated after unevaluatedItems, then any annotations collected by its subschemas will not be visible to unevaluatedItems. So therefore, shouldn't this wording be "..would need to be evaluated after this keyword"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions