Skip to content

Pydanticforms: Handle optional array fields #1890

Open
@DutchBen

Description

@DutchBen

What
Handle the situation where there is an optional array field

Why
When an array field is options pydantic forms backend returns this as {oneOf: [null, {.. arrayitem definition ..}]}. We currently dont handle this well because we always expect only 1 element. While we dont support tuples of different array element types we should handle this situation.

Acceptance
The frontend takes the array element definition from the oneOf field and makes the field not required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions