diff --git a/fastapi/openapi/models.py b/fastapi/openapi/models.py index 49ec74c36..034ddf1a9 100644 --- a/fastapi/openapi/models.py +++ b/fastapi/openapi/models.py @@ -140,7 +140,7 @@ class Schema(BaseModel): class Config: extra: str = "allow" - smart_union = True + smart_union: bool = True class Example(BaseModel):