Skip to content

Commit d5c1c97

Browse files
authored
Make Schema.from_dict name param required
1 parent 8a76df5 commit d5c1c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/openapi_parser/openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class Schema:
154154
relative_imports: Set[str]
155155

156156
@staticmethod
157-
def from_dict(d: Dict[str, Any], /, name: str = None) -> Schema:
157+
def from_dict(d: Dict[str, Any], /, name: str) -> Schema:
158158
""" A single Schema from its dict representation
159159
:param d: Dict representation of the schema
160160
: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

Comments
 (0)