Skip to content

Support "unevaluatedProperties" #122

@charjr

Description

@charjr

unevaluatedProperties is a bit like additionalProperties but it checks against all subSchemas and adjacent schemas.

i.e.

allOf:
  - properties:
    - foo
    - bar
    additionalProperties: false
  - properties:
    - baz
    required:
      - baz

The above will always fail because the second schema requires baz, but the first schema would consider baz to be an additionalProperty.

allOf:
  - properties:
    - foo
    - bar
    unevaluatedProperties: false
  - properties:
    - baz
    required:
      - baz

The above is able to pass, because the second schema evaluates baz.

See the following for more information:
https://json-schema.org/understanding-json-schema/reference/object.html#unevaluated-properties

json-schema-org/json-schema-spec#556

Metadata

Metadata

Assignees

No one assigned

    Labels

    Blocked by external dependencyMust be solved in underlying library or by using a different library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions