Skip to content

Relative constraints #250

Closed
Closed
@stuartpb

Description

@stuartpb

Quick example: my schema includes a length object that has two properties, min and max. I'd like a way to specify that a document like this, where max is less than min, is invalid:

{"length": {"min": 42, "max": 7}}

Other relative property/item relationships like "this array must include the same values as this property", "the third item in this tuple must not be the same as the first item", or "all the values in this array must be sorted in lexical order" would be useful, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions