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.
Tried to override Literal generation (
typingmodule) for JSON Schema enums with >1 options. Regardless of the value passed toenum_field_as_literal, the result is always aLiteral. The only workaround that was switching toJsonSchemaParserand in that environment,LiteralType.Allworks as intended.