Skip to content

Why required: [] generates an error #651

Closed
@erdnax123

Description

@erdnax123
{
    ...
    "components": {
        "schemas": {
            "ABC": {
                "required": [],
                 ...
             },
             ...
        }
    }
}

this generates an error:

components -> schemas -> ABC -> required
  ensure this value has at least 1 items (type=value_error.list.min_items; limit_value=1)

"required": null do not generates an error

expected:

  • required not set
  • required = null
  • required = []

are the same and not generates an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions