Skip to content

Allow empty "required" array #69

Closed
@gibson042

Description

@gibson042

(copied from json-schema/json-schema#232 )

Draft v4 specifies that a required array "MUST have at least one element", which makes it impossible to explicitly indicate that all properties are optional (and therefore also impossible to distinguish intentional optionality from accidental omission of required). Empty values ("required": []) should be permitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions