(
cls,
by_alias: bool = True,
ref_template: str = DEFAULT_REF_TEMPLATE,
schema_generator: type[GenerateJsonSchema] = MyGenerateJsonSchema,
mode='validation',
*,
union_format: Literal['any_of', 'primitive_type_array'] = 'any_of',
)
| 4662 | class MyBaseModel(BaseModel): |
| 4663 | @classmethod |
| 4664 | def model_json_schema( |
| 4665 | cls, |
| 4666 | by_alias: bool = True, |
| 4667 | ref_template: str = DEFAULT_REF_TEMPLATE, |
| 4668 | schema_generator: type[GenerateJsonSchema] = MyGenerateJsonSchema, |
| 4669 | mode='validation', |
| 4670 | *, |
| 4671 | union_format: Literal['any_of', 'primitive_type_array'] = 'any_of', |
| 4672 | ) -> dict[str, Any]: |
| 4673 | return super().model_json_schema(by_alias, ref_template, schema_generator, mode, union_format=union_format) |
| 4674 | |
| 4675 | class MyModel(MyBaseModel): |
| 4676 | x: int |
no outgoing calls
no test coverage detected