Skip to content

propertyNames not work with enum or not enum #342

@gchuyun

Description

@gchuyun

schema:
{"type": "object", "patternProperties": { "": { "enum": [1,2] } }, "propertyNames": { "enum": ["a"] } }

data:
{"a": 1, "abc": 2, "abcd": 3}

validate with SpecVersion.VersionFlag.V201909 get errors:
$.abcd: does not have a value in the enumeration [1, 2]

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