MCPcopy
hub / github.com/pydantic/pydantic / schema_json_of

Function schema_json_of

pydantic/v1/tools.py:90–92  ·  view source on GitHub ↗

Generate a JSON schema (as JSON) for the passed model or dynamically generated one

(type_: Any, *, title: Optional[NameFactory] = None, **schema_json_kwargs: Any)

Source from the content-addressed store, hash-verified

88
89
90def schema_json_of(type_: Any, *, title: Optional[NameFactory] = None, **schema_json_kwargs: Any) -> str:
91 """Generate a JSON schema (as JSON) for the passed model or dynamically generated one"""
92 return _get_parsing_type(type_, type_name=title).schema_json(**schema_json_kwargs)

Callers 2

test_deprecated_moduleFunction · 0.90
test_schemaFunction · 0.90

Calls 2

_get_parsing_typeFunction · 0.85
schema_jsonMethod · 0.45

Tested by 2

test_deprecated_moduleFunction · 0.72
test_schemaFunction · 0.72