Skip to content

Commit

Permalink
OpenAPI - disable print
Browse files Browse the repository at this point in the history
  • Loading branch information
ggpwnkthx authored and commonism committed Sep 22, 2023
1 parent f5d4840 commit 94a6082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiopenapi3/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,15 +545,15 @@ def _init_schema_types(self, only_required: bool) -> None:
todo: Set[int] = self._iterate_schemas(byid, data, set())
types: Dict[str, Union[ForwardRef, Type[BaseModel], Type[int], Type[str], Type[float], Type[bool]]] = dict()

print(f"{len(todo | data)} {only_required=}")
# print(f"{len(todo | data)} {only_required=}")
for i in todo | data:
b = byid[i]
name = b._get_identity("X")
types[name] = b.get_type()
for idx, j in enumerate(b._model_types):
types[f"{name}.c{idx}"] = j

print(f"{len(types)}")
# print(f"{len(types)}")
for name, schema in types.items():
if not (inspect.isclass(schema) and issubclass(schema, BaseModel)):
# primitive types: str, int …
Expand Down

0 comments on commit 94a6082

Please sign in to comment.