Skip to content

[BUG] [Dart] anyOf of $ref enum + inline literal enum emits undeclared StatusEnum #23665

@winrid

Description

@winrid

The dart generator emits a property typed StatusEnum? for an anyOf between a $ref'd enum and an inline literal enum, but never declares the StatusEnum class anywhere in lib/model/, so the generated file fails to compile.

status:
  anyOf:
    - $ref: '#/components/schemas/APIStatus'
    - { type: string, enum: ['pending-verification'] }

Working on a PR.

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