We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Schema.from_dict
name
1 parent 8a76df5 commit d5c1c97Copy full SHA for d5c1c97
openapi_python_client/openapi_parser/openapi.py
@@ -154,7 +154,7 @@ class Schema:
154
relative_imports: Set[str]
155
156
@staticmethod
157
- def from_dict(d: Dict[str, Any], /, name: str = None) -> Schema:
+ def from_dict(d: Dict[str, Any], /, name: str) -> Schema:
158
""" A single Schema from its dict representation
159
:param d: Dict representation of the schema
160
:param name: Name by which the schema is referenced, such as a model name. Used to infer the type name if a `title` property is not available.
0 commit comments