MCPcopy
hub / github.com/pydantic/pydantic / Strings

Class Strings

tests/test_plugins.py:297–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 log.append(f'json error error={error}')
296
297 class Strings(ValidateStringsHandlerProtocol):
298 def on_enter(self, input, **kwargs) -> None:
299 log.append(f'strings enter input={input} kwargs={kwargs}')
300
301 def on_success(self, result: Any) -> None:
302 log.append(f'strings success result={result}')
303
304 def on_error(self, error: ValidationError) -> None:
305 log.append(f'strings error error={error}')
306
307 class Plugin(PydanticPluginProtocol):
308 def new_schema_validator(self, schema, schema_type, schema_type_path, schema_kind, config, plugin_settings):

Callers 1

new_schema_validatorMethod · 0.85

Calls

no outgoing calls

Tested by 1

new_schema_validatorMethod · 0.68