Skip to content

not possible to generate Option[List[Foo]] or empty list #180

@rkazanova

Description

@rkazanova

there is not possible to generate Option[List[Foo]] or empty list

somearray:
   type: array
   items:
      $ref: "#/components/schemas/Foo"

We can use property for this feature:
nullable: true => for Option[List[Foo]] // to generate Option[List[Foo]]
default: [] => for empty list // to generate empty list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions