()
| 681 | |
| 682 | |
| 683 | def test_custom_schema(): |
| 684 | T = TypeVar('T') |
| 685 | |
| 686 | class MyModel(BaseModel, Generic[T]): |
| 687 | a: int = Field(1, description='Custom') |
| 688 | |
| 689 | schema = MyModel[int].model_json_schema() |
| 690 | assert schema['properties']['a'].get('description') == 'Custom' |
| 691 | |
| 692 | |
| 693 | def test_child_schema(): |
nothing calls this directly
no test coverage detected