MCPcopy
hub / github.com/pydantic/pydantic / new_schema_validator

Method new_schema_validator

tests/test_plugins.py:110–113  ·  view source on GitHub ↗
(self, schema, schema_type, schema_type_path, schema_kind, config, plugin_settings)

Source from the content-addressed store, hash-verified

108
109 class Plugin(PydanticPluginProtocol):
110 def new_schema_validator(self, schema, schema_type, schema_type_path, schema_kind, config, plugin_settings):
111 assert config == {'title': 'Model'}
112 assert plugin_settings == {'observe': 'all'}
113 return None, CustomOnValidateJson(), None
114
115 plugin = Plugin()
116 with install_plugin(plugin):

Callers

nothing calls this directly

Calls 7

SchemaTypePathClass · 0.90
PythonClass · 0.85
StringsClass · 0.85
keysMethod · 0.80
JsonClass · 0.70

Tested by

no test coverage detected