Skip to content

Support enums in transform_schema #1208

@s-banach

Description

@s-banach

For example, pydantic models with Literal fields get translated into str type fields with the enum values merely hinted at in the description.

The backend supports constrained generation using the enums, so the enum type should be preserved.

Another user has proposed a fix already:
#1178
(Not to endorse the particular fix, just to say this is an issue other people have noticed.)

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