Skip to content

[draft6 validation meta-schema] validate property names in patternProperties #334

@santhosh-tekuri

Description

@santhosh-tekuri

I suggest addition to validation meta-schema, to restrict property names of patternProperties are regex.

         "patternProperties": {
              "type": "object",
 +            "propertyNames": { "format": "regex" },
              "additionalProperties": { "$ref": "#" },
              "default": {}
          },

The spec says:

Each property name of this object SHOULD be a valid regular expression, according to the ECMA 262 regular expression dialect.

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