MCPcopy
hub / github.com/pydantic/pydantic / clean_schema

Method clean_schema

pydantic/_internal/_generate_schema.py:703–704  ·  view source on GitHub ↗
(self, schema: CoreSchema)

Source from the content-addressed store, hash-verified

701 return schema
702
703 def clean_schema(self, schema: CoreSchema) -> CoreSchema:
704 return self.defs.finalize_schema(schema)
705
706 def _add_js_function(self, metadata_schema: CoreSchema, js_function: Callable[..., Any]) -> None:
707 metadata = metadata_schema.get('metadata', {})

Callers 7

_init_core_attrsMethod · 0.95
complete_model_classFunction · 0.95
complete_dataclassFunction · 0.95
_create_validatorsMethod · 0.95

Calls 1

finalize_schemaMethod · 0.80