MCPcopy
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
223def 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()

Calls 9

FieldFunction · 0.90
ByteSizeClass · 0.90
WithJsonSchemaClass · 0.90
ConfigDictClass · 0.90
PlainSerializerClass · 0.90
BeforeValidatorClass · 0.90
AfterValidatorClass · 0.90
WrapValidatorClass · 0.90
PlainValidatorClass · 0.90