From c33658f87d1277f5bb10c82aeb89d5bdf31fc051 Mon Sep 17 00:00:00 2001 From: alexturcea Date: Wed, 10 May 2023 13:43:46 +0300 Subject: [PATCH] Added type annotation for smart_union --- fastapi/openapi/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):