Skip to content

generate() for TypingTypedDict does not support LiteralType.One or LiteralType.All #2411

@beaubhp

Description

@beaubhp

Tried to override Literal generation (typing module) for JSON Schema enums with >1 options. Regardless of the value passed to enum_field_as_literal, the result is always a Literal. The only workaround that was switching to JsonSchemaParser and in that environment, LiteralType.All works as intended.

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