Skip to content

Commit 7f92084

Browse files
committed
Enable Openapi 3.1.0
1 parent a719c87 commit 7f92084

28 files changed

+31
-31
lines changed

openapi_python_client/schema/openapi_schema_pydantic/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
OpenAPI v3.0.3 schema types, created according to the specification:
3-
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md
2+
OpenAPI v3.1.0 schema types, created according to the specification:
3+
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md
44
55
The type orders are according to the contents of the specification:
6-
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#table-of-contents
6+
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#table-of-contents
77
"""
88

99
__all__ = [

openapi_python_client/schema/openapi_schema_pydantic/components.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Components(BaseModel):
2222
2323
References:
2424
- https://swagger.io/docs/specification/components/
25-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#componentsObject
25+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsObject
2626
"""
2727

2828
schemas: Optional[Dict[str, Union[Schema, Reference]]] = None

openapi_python_client/schema/openapi_schema_pydantic/contact.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Contact(BaseModel):
88
Contact information for the exposed API.
99
1010
See Also:
11-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#contactObject
11+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#contactObject
1212
"""
1313

1414
name: Optional[str] = None

openapi_python_client/schema/openapi_schema_pydantic/discriminator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Discriminator(BaseModel):
1515
1616
References:
1717
- https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/
18-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#discriminatorObject
18+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#discriminatorObject
1919
"""
2020

2121
propertyName: str

openapi_python_client/schema/openapi_schema_pydantic/encoding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Encoding(BaseModel):
1515
1616
References:
1717
- https://swagger.io/docs/specification/describing-request-body/
18-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#encodingObject
18+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#encodingObject
1919
"""
2020

2121
contentType: Optional[str] = None

openapi_python_client/schema/openapi_schema_pydantic/example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Example(BaseModel):
88
99
References:
1010
- https://swagger.io/docs/specification/adding-examples/
11-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#exampleObject
11+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#exampleObject
1212
"""
1313

1414
summary: Optional[str] = None

openapi_python_client/schema/openapi_schema_pydantic/external_documentation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ExternalDocumentation(BaseModel):
77
"""Allows referencing an external resource for extended documentation.
88
99
References:
10-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#externalDocumentationObject
10+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#externalDocumentationObject
1111
"""
1212

1313
description: Optional[str] = None

openapi_python_client/schema/openapi_schema_pydantic/header.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Header(Parameter):
1515
1616
References:
1717
- https://swagger.io/docs/specification/describing-parameters/#header-parameters
18-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#headerObject
18+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#headerObject
1919
"""
2020

2121
name: str = Field(default="")

openapi_python_client/schema/openapi_schema_pydantic/info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Info(BaseModel):
1414
1515
References:
1616
- https://swagger.io/docs/specification/api-general-info/
17-
-https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#infoObject
17+
-https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#infoObject
1818
"""
1919

2020
title: str

openapi_python_client/schema/openapi_schema_pydantic/license.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class License(BaseModel):
88
License information for the exposed API.
99
1010
References:
11-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#licenseObject
11+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#licenseObject
1212
"""
1313

1414
name: str

openapi_python_client/schema/openapi_schema_pydantic/link.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Link(BaseModel):
2020
2121
References:
2222
- https://swagger.io/docs/specification/links/
23-
- https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#linkObject
23+
- https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#linkObject
2424
"""
2525

2626
operationRef: Optional[str] = None

openapi_python_client/schema/openapi_schema_pydantic/media_type.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MediaType(BaseModel):
1313
1414
References:
1515
- https://swagger.io/docs/specification/media-types/
16-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#mediaTypeObject
16+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#mediaTypeObject
1717
"""
1818

1919
media_type_schema: Optional[Union[Reference, Schema]] = Field(default=None, alias="schema")

openapi_python_client/schema/openapi_schema_pydantic/oauth_flow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class OAuthFlow(BaseModel):
88
Configuration details for a supported OAuth Flow
99
1010
References:
11-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oauthFlowObject
11+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauthFlowObject
1212
- https://swagger.io/docs/specification/authentication/oauth2/
1313
"""
1414

openapi_python_client/schema/openapi_schema_pydantic/oauth_flows.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class OAuthFlows(BaseModel):
1010
Allows configuration of the supported OAuth Flows.
1111
1212
References:
13-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oauthFlowsObject
13+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauthFlowsObject
1414
- https://swagger.io/docs/specification/authentication/oauth2/
1515
"""
1616

openapi_python_client/schema/openapi_schema_pydantic/open_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class OpenAPI(BaseModel):
1919
"""This is the root document object of the OpenAPI document.
2020
2121
References:
22-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oasObject
22+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oasObject
2323
- https://swagger.io/docs/specification/basic-structure/
2424
"""
2525

@@ -30,7 +30,7 @@ class OpenAPI(BaseModel):
3030
security: Optional[List[SecurityRequirement]] = None
3131
tags: Optional[List[Tag]] = None
3232
externalDocs: Optional[ExternalDocumentation] = None
33-
openapi: Union[Literal["3.0.0"], Literal["3.0.1"], Literal["3.0.2"], Literal["3.0.3"]]
33+
openapi: Union[Literal["3.0.0"], Literal["3.0.1"], Literal["3.0.2"], Literal["3.0.3"], Literal["3.1.0"]]
3434
model_config = ConfigDict(extra="allow")
3535

3636

openapi_python_client/schema/openapi_schema_pydantic/operation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Operation(BaseModel):
2121
2222
References:
2323
- https://swagger.io/docs/specification/paths-and-operations/
24-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#operationObject
24+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#operationObject
2525
"""
2626

2727
tags: Optional[List[str]] = None

openapi_python_client/schema/openapi_schema_pydantic/parameter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Parameter(BaseModel):
1818
References:
1919
- https://swagger.io/docs/specification/describing-parameters/
2020
- https://swagger.io/docs/specification/serialization/
21-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#parameterObject
21+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameterObject
2222
"""
2323

2424
name: str

openapi_python_client/schema/openapi_schema_pydantic/path_item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PathItem(BaseModel):
1616
1717
References:
1818
- https://swagger.io/docs/specification/paths-and-operations/
19-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#pathItemObject
19+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#pathItemObject
2020
"""
2121

2222
ref: Optional[str] = Field(default=None, alias="$ref")

openapi_python_client/schema/openapi_schema_pydantic/paths.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
1212
References:
1313
- https://swagger.io/docs/specification/paths-and-operations/
14-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#pathsObject
14+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#pathsObject
1515
"""

openapi_python_client/schema/openapi_schema_pydantic/reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Reference(BaseModel):
1313
1414
References:
1515
- https://swagger.io/docs/specification/using-ref/
16-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#referenceObject
16+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#referenceObject
1717
"""
1818

1919
ref: str = Field(alias="$ref")

openapi_python_client/schema/openapi_schema_pydantic/request_body.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class RequestBody(BaseModel):
1010
1111
References:
1212
- https://swagger.io/docs/specification/describing-request-body/
13-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#requestBodyObject
13+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#requestBodyObject
1414
"""
1515

1616
description: Optional[str] = None

openapi_python_client/schema/openapi_schema_pydantic/response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Response(BaseModel):
1515
1616
References:
1717
- https://swagger.io/docs/specification/describing-responses/
18-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#responseObject
18+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#responseObject
1919
"""
2020

2121
description: str

openapi_python_client/schema/openapi_schema_pydantic/schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Schema(BaseModel):
1717
1818
References:
1919
- https://swagger.io/docs/specification/data-models/
20-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#schemaObject
20+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schemaObject
2121
"""
2222

2323
title: Optional[str] = None

openapi_python_client/schema/openapi_schema_pydantic/security_scheme.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SecurityScheme(BaseModel):
1616
1717
References:
1818
- https://swagger.io/docs/specification/authentication/
19-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#componentsObject
19+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsObject
2020
"""
2121

2222
type: str

openapi_python_client/schema/openapi_schema_pydantic/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Server(BaseModel):
1010
1111
References:
1212
- https://swagger.io/docs/specification/api-host-and-base-path/
13-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#serverObject
13+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#serverObject
1414
"""
1515

1616
url: str

openapi_python_client/schema/openapi_schema_pydantic/server_variable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ServerVariable(BaseModel):
88
99
References:
1010
- https://swagger.io/docs/specification/api-host-and-base-path/
11-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#serverVariableObject
11+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#serverVariableObject
1212
"""
1313

1414
enum: Optional[List[str]] = None

openapi_python_client/schema/openapi_schema_pydantic/tag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Tag(BaseModel):
1212
1313
References:
1414
- https://swagger.io/docs/specification/paths-and-operations/
15-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#tagObject
15+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#tagObject
1616
"""
1717

1818
name: str

openapi_python_client/schema/openapi_schema_pydantic/xml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class XML(BaseModel):
1313
1414
References:
1515
- https://swagger.io/docs/specification/data-models/representing-xml/
16-
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#xmlObject
16+
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#xmlObject
1717
"""
1818

1919
name: Optional[str] = None

0 commit comments

Comments
 (0)