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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)