Generate a JSON schema (as dict) for the passed model or dynamically generated one
(type_: Any, *, title: Optional[NameFactory] = None, **schema_kwargs: Any)
| 83 | |
| 84 | |
| 85 | def schema_of(type_: Any, *, title: Optional[NameFactory] = None, **schema_kwargs: Any) -> 'DictStrAny': |
| 86 | """Generate a JSON schema (as dict) for the passed model or dynamically generated one""" |
| 87 | return _get_parsing_type(type_, type_name=title).schema(**schema_kwargs) |
| 88 | |
| 89 | |
| 90 | def schema_json_of(type_: Any, *, title: Optional[NameFactory] = None, **schema_json_kwargs: Any) -> str: |