MCPcopy
hub / github.com/pydantic/pydantic / Json

Class Json

tests/test_plugins.py:287–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 log.append(f'python error error={error}')
286
287 class Json(ValidateJsonHandlerProtocol):
288 def on_enter(self, input, **kwargs) -> None:
289 log.append(f'json enter input={input} kwargs={kwargs}')
290
291 def on_success(self, result: Any) -> None:
292 log.append(f'json success result={result}')
293
294 def on_error(self, error: ValidationError) -> None:
295 log.append(f'json error error={error}')
296
297 class Strings(ValidateStringsHandlerProtocol):
298 def on_enter(self, input, **kwargs) -> None:

Callers 1

new_schema_validatorMethod · 0.70

Calls

no outgoing calls

Tested by 1

new_schema_validatorMethod · 0.56