Fix openapi generator and regenerator OpenAPI types

This commit is contained in:
Ashwin Bharambe 2024-11-11 18:44:38 -08:00
parent 343458479d
commit 47e7c2dc15
3 changed files with 1137 additions and 264 deletions

View file

@ -358,6 +358,7 @@ def unwrap_union_types(typ: object) -> Tuple[object, ...]:
:returns: The inner types `T1`, `T2`, etc.
"""
typ = unwrap_annotated_type(typ)
return _unwrap_union_types(typ)