Skip to content

Properly support propertyNames #396

@JonasProgrammer

Description

@JonasProgrammer

The current implementation of propertyNames is completely separate from the remaining validation code, implementing special cases for stuff like minLength.

According to the spec, however, propertyNames should be treated like a normal json schema being applied to a text node of the property value.

This has lead to issues, such as #342 and #326.

I propose to just do what the spec says and apply the node content under propertyNames to each field name as if it were a TextNode.

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