Skip to content

Why does draft 7 sometimes use format: regex without type: string? #1405

@ahl

Description

@ahl

The use of regex as a format seems inconsistent:

with type

"pattern": {
"type": "string",
"format": "regex"
},

without type

"propertyNames": { "format": "regex" },

Is "type": "string" optional in this case? If so, why does the former case include it? If not, is the latter case a bug?

Thanks.

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