Skip to content

Feature request: ability to generate enums as Literal #395

@Object905

Description

@Object905

Adding a enum variant to the schema should not break clients, yet it does because of pydantic validation.

It would be nice to have a toggle to generate enum values as str, but annotated with Literal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions