Skip to content

Commit 7751b1a

Browse files
committed
feat: Add new OAS versions.
1 parent e93752c commit 7751b1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openapi_pydantic/v3/v3_0_3/open_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class OpenAPI(BaseModel):
1717
"""This is the root document object of the OpenAPI document."""
1818

19-
openapi: Literal["3.0.3", "3.0.2", "3.0.1", "3.0.0"] = "3.0.3"
19+
openapi: Literal["3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0"] = "3.0.4"
2020
"""
2121
**REQUIRED**. This string MUST be the [semantic version number](https://semver.org/spec/v2.0.0.html)
2222
of the [OpenAPI Specification version](#versions) that the OpenAPI document uses.

openapi_pydantic/v3/v3_1_0/open_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class OpenAPI(BaseModel):
1919
"""This is the root document object of the OpenAPI document."""
2020

21-
openapi: Literal["3.1.0"] = "3.1.0"
21+
openapi: Literal["3.1.1", "3.1.0"] = "3.1.1"
2222
"""
2323
**REQUIRED**. This string MUST be the [version number](#versions)
2424
of the OpenAPI Specification that the OpenAPI document uses.

0 commit comments

Comments
 (0)