(schema: CoreSchema, handler: GetJsonSchemaHandler)
| 437 | if cases: |
| 438 | |
| 439 | def get_json_schema(schema: CoreSchema, handler: GetJsonSchemaHandler) -> JsonSchemaValue: |
| 440 | json_schema = handler(schema) |
| 441 | original_schema = handler.resolve_ref_schema(json_schema) |
| 442 | original_schema.update(js_updates) |
| 443 | return json_schema |
| 444 | |
| 445 | # we don't want to add the missing to the schema if it's the default one |
| 446 | default_missing = getattr(enum_type._missing_, '__func__', None) is Enum._missing_.__func__ # pyright: ignore[reportFunctionMemberAccess] |
nothing calls this directly
no test coverage detected