Browse Source
Added type annotation for smart_union
pull/9517/head
alexturcea
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
fastapi/openapi/models.py
|
@ -140,7 +140,7 @@ class Schema(BaseModel): |
|
|
|
|
|
|
|
|
class Config: |
|
|
class Config: |
|
|
extra: str = "allow" |
|
|
extra: str = "allow" |
|
|
smart_union = True |
|
|
smart_union: bool = True |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Example(BaseModel): |
|
|
class Example(BaseModel): |
|
|