Skip to content

Array properties with array items listed in enums does not validate properly #547

Closed
@malinink

Description

@malinink

For example if we have array property:

{"data": ["a", "b"]}

And validation like:

{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "type": "string",
                "enum": ["b", "c"]
            }
        }
    }
}

Validation wrongly finished with success.
I will provide PR with test for that particular case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions