Skip to content

Commit c19ba73

Browse files
committed
supressed Schema type and already visted Schema warnings
1 parent 68f703f commit c19ba73

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/borea_python/openapi_parser.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,8 @@ def _resolve_nested_types(
315315
return nested_types
316316

317317
if "type" in schema:
318-
if schema["type"] in ["object", "array"]:
319-
self._traverse_dict(schema, count=count + 1)
320-
nested_types.append(schema)
321-
else:
322-
# type in schema is not object or array
323-
Logger.warn(f"Schema has type {schema['type']}")
318+
self._traverse_dict(schema, count=count + 1)
319+
nested_types.append(schema)
324320

325321
if "$ref" in schema:
326322
ref_name = schema["$ref"].split("/")[-1]
@@ -334,7 +330,8 @@ def _resolve_nested_types(
334330
)
335331
)
336332
else:
337-
Logger.warn(f"Schema {ref_name} has already been visited")
333+
# Logger.warn(f"Schema {ref_name} has already been visited")
334+
pass
338335
else:
339336
Logger.warn(f"Schema {ref_name} not found in schemas")
340337

0 commit comments

Comments
 (0)