Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 632d90e

Browse files
authored
FIX: Missed union on 3.1 schema (#6)
1 parent 22782bb commit 632d90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_openapi_schema/v3_1_0/contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Contact(BaseModel):
1919
MUST be in the form of a URL.
2020
"""
2121

22-
email: Optional[EmailStr] = None
22+
email: Optional[Union[EmailStr, str]] = None
2323
"""
2424
The email address of the contact person/organization.
2525
MUST be in the form of an email address.

0 commit comments

Comments
 (0)