Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ validate
Method
validate
tests/test_main.py:2852–2853 ·
view source on GitHub ↗
(cls, value, info)
Source
from the content-addressed store, hash-verified
2850
2851
@field_validator(
'x'
)
2852
def
validate(cls, value, info):
2853
return
value * info.context.get(
'multiplier'
, 1)
2854
2855
class
OuterModel(BaseModel):
2856
inner: InnerModel
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected