Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ Model
Class
Model
tests/test_json_schema.py:224–226 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
222
223
def
test_schema_class():
224
class
Model(BaseModel):
225
foo: int = Field(4, title=
'Foo is Great'
)
226
bar: str = Field(description=
'this description of bar'
)
227
228
with
pytest.raises(ValidationError):
229
Model()
Callers
9
test_schema_class
Function · 0.70
test_optional_dict
Function · 0.70
test_optional_validator
Function · 0.70
test_json_schema_extras_on_ref
Function · 0.70
test_skip_json_schema_annotation
Function · 0.70
test_skip_json_schema_exclude_default
Function · 0.70
test_typeddict_field_required_missing
Function · 0.70
OuterModel
Class · 0.70
test_callable_json_schema_extra
Function · 0.70
Calls
9
Field
Function · 0.90
ByteSize
Class · 0.90
WithJsonSchema
Class · 0.90
ConfigDict
Class · 0.90
PlainSerializer
Class · 0.90
BeforeValidator
Class · 0.90
AfterValidator
Class · 0.90
WrapValidator
Class · 0.90
PlainValidator
Class · 0.90
Tested by
8
test_schema_class
Function · 0.56
test_optional_dict
Function · 0.56
test_optional_validator
Function · 0.56
test_json_schema_extras_on_ref
Function · 0.56
test_skip_json_schema_annotation
Function · 0.56
test_skip_json_schema_exclude_default
Function · 0.56
test_typeddict_field_required_missing
Function · 0.56
test_callable_json_schema_extra
Function · 0.56