datamodel-code-generator
datamodel-code-generator copied to clipboard
`generate()` for TypingTypedDict does not support LiteralType.One or LiteralType.All
trafficstars
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.