diff --git a/openapi_python_client/schema/openapi_schema_pydantic/__init__.py b/openapi_python_client/schema/openapi_schema_pydantic/__init__.py index 6b02446a8..4e7310624 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/__init__.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/__init__.py @@ -1,9 +1,9 @@ """ -OpenAPI v3.0.3 schema types, created according to the specification: -https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md +OpenAPI v3.1.0 schema types, created according to the specification: +https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md The type orders are according to the contents of the specification: -https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#table-of-contents +https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#table-of-contents """ __all__ = [ diff --git a/openapi_python_client/schema/openapi_schema_pydantic/components.py b/openapi_python_client/schema/openapi_schema_pydantic/components.py index f366a2ec8..fe3909c42 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/components.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/components.py @@ -22,7 +22,7 @@ class Components(BaseModel): References: - https://swagger.io/docs/specification/components/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#componentsObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsObject """ schemas: Optional[Dict[str, Union[Schema, Reference]]] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/contact.py b/openapi_python_client/schema/openapi_schema_pydantic/contact.py index c04fdbbe0..ec674859c 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/contact.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/contact.py @@ -8,7 +8,7 @@ class Contact(BaseModel): Contact information for the exposed API. See Also: - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#contactObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#contactObject """ name: Optional[str] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/discriminator.py b/openapi_python_client/schema/openapi_schema_pydantic/discriminator.py index 95161d07a..213a14a0f 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/discriminator.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/discriminator.py @@ -15,7 +15,7 @@ class Discriminator(BaseModel): References: - https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#discriminatorObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#discriminatorObject """ propertyName: str diff --git a/openapi_python_client/schema/openapi_schema_pydantic/encoding.py b/openapi_python_client/schema/openapi_schema_pydantic/encoding.py index 6f4f2a9f6..2f72efb4b 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/encoding.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/encoding.py @@ -15,7 +15,7 @@ class Encoding(BaseModel): References: - https://swagger.io/docs/specification/describing-request-body/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#encodingObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#encodingObject """ contentType: Optional[str] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/example.py b/openapi_python_client/schema/openapi_schema_pydantic/example.py index 90db2530e..550c699c7 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/example.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/example.py @@ -8,7 +8,7 @@ class Example(BaseModel): References: - https://swagger.io/docs/specification/adding-examples/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#exampleObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#exampleObject """ summary: Optional[str] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/external_documentation.py b/openapi_python_client/schema/openapi_schema_pydantic/external_documentation.py index 2c0c39b7c..3ef100581 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/external_documentation.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/external_documentation.py @@ -7,7 +7,7 @@ class ExternalDocumentation(BaseModel): """Allows referencing an external resource for extended documentation. References: - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#externalDocumentationObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#externalDocumentationObject """ description: Optional[str] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/header.py b/openapi_python_client/schema/openapi_schema_pydantic/header.py index 3223c199b..2aca6cbdc 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/header.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/header.py @@ -15,7 +15,7 @@ class Header(Parameter): References: - https://swagger.io/docs/specification/describing-parameters/#header-parameters - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#headerObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#headerObject """ name: str = Field(default="") diff --git a/openapi_python_client/schema/openapi_schema_pydantic/info.py b/openapi_python_client/schema/openapi_schema_pydantic/info.py index bec1354da..dbf66e517 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/info.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/info.py @@ -14,7 +14,7 @@ class Info(BaseModel): References: - https://swagger.io/docs/specification/api-general-info/ - -https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#infoObject + -https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#infoObject """ title: str diff --git a/openapi_python_client/schema/openapi_schema_pydantic/license.py b/openapi_python_client/schema/openapi_schema_pydantic/license.py index 185eec1db..e10b86dfa 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/license.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/license.py @@ -8,7 +8,7 @@ class License(BaseModel): License information for the exposed API. References: - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#licenseObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#licenseObject """ name: str diff --git a/openapi_python_client/schema/openapi_schema_pydantic/link.py b/openapi_python_client/schema/openapi_schema_pydantic/link.py index 9f823c4a2..a8afb0d0d 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/link.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/link.py @@ -20,7 +20,7 @@ class Link(BaseModel): References: - https://swagger.io/docs/specification/links/ - - https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#linkObject + - https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#linkObject """ operationRef: Optional[str] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/media_type.py b/openapi_python_client/schema/openapi_schema_pydantic/media_type.py index 1bda99560..3e8c31c32 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/media_type.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/media_type.py @@ -13,7 +13,7 @@ class MediaType(BaseModel): References: - https://swagger.io/docs/specification/media-types/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#mediaTypeObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#mediaTypeObject """ media_type_schema: Optional[Union[Reference, Schema]] = Field(default=None, alias="schema") diff --git a/openapi_python_client/schema/openapi_schema_pydantic/oauth_flow.py b/openapi_python_client/schema/openapi_schema_pydantic/oauth_flow.py index c7485814f..38036e97b 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/oauth_flow.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/oauth_flow.py @@ -8,7 +8,7 @@ class OAuthFlow(BaseModel): Configuration details for a supported OAuth Flow References: - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oauthFlowObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauthFlowObject - https://swagger.io/docs/specification/authentication/oauth2/ """ diff --git a/openapi_python_client/schema/openapi_schema_pydantic/oauth_flows.py b/openapi_python_client/schema/openapi_schema_pydantic/oauth_flows.py index dba193713..3faff17c8 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/oauth_flows.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/oauth_flows.py @@ -10,7 +10,7 @@ class OAuthFlows(BaseModel): Allows configuration of the supported OAuth Flows. References: - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oauthFlowsObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauthFlowsObject - https://swagger.io/docs/specification/authentication/oauth2/ """ diff --git a/openapi_python_client/schema/openapi_schema_pydantic/open_api.py b/openapi_python_client/schema/openapi_schema_pydantic/open_api.py index ba54ec095..344fe0f91 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/open_api.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/open_api.py @@ -19,7 +19,7 @@ class OpenAPI(BaseModel): """This is the root document object of the OpenAPI document. References: - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oasObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oasObject - https://swagger.io/docs/specification/basic-structure/ """ @@ -30,7 +30,7 @@ class OpenAPI(BaseModel): security: Optional[List[SecurityRequirement]] = None tags: Optional[List[Tag]] = None externalDocs: Optional[ExternalDocumentation] = None - openapi: Union[Literal["3.0.0"], Literal["3.0.1"], Literal["3.0.2"], Literal["3.0.3"]] + openapi: Union[Literal["3.0.0"], Literal["3.0.1"], Literal["3.0.2"], Literal["3.0.3"], Literal["3.1.0"]] model_config = ConfigDict(extra="allow") diff --git a/openapi_python_client/schema/openapi_schema_pydantic/operation.py b/openapi_python_client/schema/openapi_schema_pydantic/operation.py index f8633da02..316442a6e 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/operation.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/operation.py @@ -21,7 +21,7 @@ class Operation(BaseModel): References: - https://swagger.io/docs/specification/paths-and-operations/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#operationObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#operationObject """ tags: Optional[List[str]] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/parameter.py b/openapi_python_client/schema/openapi_schema_pydantic/parameter.py index 25ba819f1..dc1c88589 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/parameter.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/parameter.py @@ -18,7 +18,7 @@ class Parameter(BaseModel): References: - https://swagger.io/docs/specification/describing-parameters/ - https://swagger.io/docs/specification/serialization/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#parameterObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameterObject """ name: str diff --git a/openapi_python_client/schema/openapi_schema_pydantic/path_item.py b/openapi_python_client/schema/openapi_schema_pydantic/path_item.py index 58c1eda82..cfbd4e144 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/path_item.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/path_item.py @@ -16,7 +16,7 @@ class PathItem(BaseModel): References: - https://swagger.io/docs/specification/paths-and-operations/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#pathItemObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#pathItemObject """ ref: Optional[str] = Field(default=None, alias="$ref") diff --git a/openapi_python_client/schema/openapi_schema_pydantic/paths.py b/openapi_python_client/schema/openapi_schema_pydantic/paths.py index d61ea7b18..14c4c3a4f 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/paths.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/paths.py @@ -11,5 +11,5 @@ References: - https://swagger.io/docs/specification/paths-and-operations/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#pathsObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#pathsObject """ diff --git a/openapi_python_client/schema/openapi_schema_pydantic/reference.py b/openapi_python_client/schema/openapi_schema_pydantic/reference.py index 50d26064f..8a235182d 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/reference.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/reference.py @@ -13,7 +13,7 @@ class Reference(BaseModel): References: - https://swagger.io/docs/specification/using-ref/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#referenceObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#referenceObject """ ref: str = Field(alias="$ref") diff --git a/openapi_python_client/schema/openapi_schema_pydantic/request_body.py b/openapi_python_client/schema/openapi_schema_pydantic/request_body.py index 6b1847215..2c9428edf 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/request_body.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/request_body.py @@ -10,7 +10,7 @@ class RequestBody(BaseModel): References: - https://swagger.io/docs/specification/describing-request-body/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#requestBodyObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#requestBodyObject """ description: Optional[str] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/response.py b/openapi_python_client/schema/openapi_schema_pydantic/response.py index a7c5d08ec..1f88162a3 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/response.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/response.py @@ -15,7 +15,7 @@ class Response(BaseModel): References: - https://swagger.io/docs/specification/describing-responses/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#responseObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#responseObject """ description: str diff --git a/openapi_python_client/schema/openapi_schema_pydantic/schema.py b/openapi_python_client/schema/openapi_schema_pydantic/schema.py index 58cc81e67..2f44f265a 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/schema.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/schema.py @@ -17,7 +17,7 @@ class Schema(BaseModel): References: - https://swagger.io/docs/specification/data-models/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#schemaObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schemaObject """ title: Optional[str] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/security_scheme.py b/openapi_python_client/schema/openapi_schema_pydantic/security_scheme.py index df385440c..d9ef07170 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/security_scheme.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/security_scheme.py @@ -16,7 +16,7 @@ class SecurityScheme(BaseModel): References: - https://swagger.io/docs/specification/authentication/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#componentsObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsObject """ type: str diff --git a/openapi_python_client/schema/openapi_schema_pydantic/server.py b/openapi_python_client/schema/openapi_schema_pydantic/server.py index d573a93fe..6e71a0408 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/server.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/server.py @@ -10,7 +10,7 @@ class Server(BaseModel): References: - https://swagger.io/docs/specification/api-host-and-base-path/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#serverObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#serverObject """ url: str diff --git a/openapi_python_client/schema/openapi_schema_pydantic/server_variable.py b/openapi_python_client/schema/openapi_schema_pydantic/server_variable.py index 3b63c9ad2..74f5bd9c9 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/server_variable.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/server_variable.py @@ -8,7 +8,7 @@ class ServerVariable(BaseModel): References: - https://swagger.io/docs/specification/api-host-and-base-path/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#serverVariableObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#serverVariableObject """ enum: Optional[List[str]] = None diff --git a/openapi_python_client/schema/openapi_schema_pydantic/tag.py b/openapi_python_client/schema/openapi_schema_pydantic/tag.py index acb5fdc28..678889359 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/tag.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/tag.py @@ -12,7 +12,7 @@ class Tag(BaseModel): References: - https://swagger.io/docs/specification/paths-and-operations/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#tagObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#tagObject """ name: str diff --git a/openapi_python_client/schema/openapi_schema_pydantic/xml.py b/openapi_python_client/schema/openapi_schema_pydantic/xml.py index 986aa44f4..27fc603bc 100644 --- a/openapi_python_client/schema/openapi_schema_pydantic/xml.py +++ b/openapi_python_client/schema/openapi_schema_pydantic/xml.py @@ -13,7 +13,7 @@ class XML(BaseModel): References: - https://swagger.io/docs/specification/data-models/representing-xml/ - - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#xmlObject + - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#xmlObject """ name: Optional[str] = None