Fix the pyopenapi generator avoid potential circular imports

This commit is contained in:
Ashwin Bharambe 2024-11-18 23:37:52 -08:00
parent d463d68e1e
commit 8ed79ad0f3
6 changed files with 5678 additions and 32467 deletions

View file

@ -204,7 +204,7 @@ class ContentBuilder:
if self.schema_transformer:
schema_transformer: Callable[[SchemaOrRef], SchemaOrRef] = (
self.schema_transformer
) # type: ignore
)
schema = schema_transformer(schema)
if not examples: