File tree Expand file tree Collapse file tree 14 files changed +16
-16
lines changed
openapi_python_client/schema/openapi_schema_pydantic Expand file tree Collapse file tree 14 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Discriminator(BaseModel):
14
14
When using the discriminator, _inline_ schemas will not be considered.
15
15
"""
16
16
17
- propertyName : str = ... # type: ignore [assignment]
17
+ propertyName : str
18
18
"""
19
19
**REQUIRED**. The name of the property in the payload that will hold the discriminator value.
20
20
"""
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class ExternalDocumentation(BaseModel):
12
12
[CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation.
13
13
"""
14
14
15
- url : AnyUrl = ... # type: ignore [assignment]
15
+ url : AnyUrl
16
16
"""
17
17
**REQUIRED**. The URL for the target documentation.
18
18
Value MUST be in the format of a URL.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Info(BaseModel):
13
13
and MAY be presented in editing or documentation generation tools for convenience.
14
14
"""
15
15
16
- title : str = ... # type: ignore [assignment]
16
+ title : str
17
17
"""
18
18
**REQUIRED**. The title of the API.
19
19
"""
@@ -40,7 +40,7 @@ class Info(BaseModel):
40
40
The license information for the exposed API.
41
41
"""
42
42
43
- version : str = ... # type: ignore [assignment]
43
+ version : str
44
44
"""
45
45
**REQUIRED**. The version of the OpenAPI document
46
46
(which is distinct from the [OpenAPI Specification version](#oasVersion) or the API implementation version).
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class License(BaseModel):
8
8
License information for the exposed API.
9
9
"""
10
10
11
- name : str = ... # type: ignore [assignment]
11
+ name : str
12
12
"""
13
13
**REQUIRED**. The license name used for the API.
14
14
"""
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class OAuthFlow(BaseModel):
27
27
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
28
28
"""
29
29
30
- scopes : Dict [str , str ] = ... # type: ignore [assignment]
30
+ scopes : Dict [str , str ]
31
31
"""
32
32
**REQUIRED**. The available scopes for the OAuth2 security scheme.
33
33
A map between the scope name and a short description for it.
Original file line number Diff line number Diff line change 14
14
class OpenAPI (BaseModel ):
15
15
"""This is the root document object of the OpenAPI document."""
16
16
17
- info : Info = ... # type: ignore [assignment]
17
+ info : Info
18
18
"""
19
19
**REQUIRED**. Provides metadata about the API. The metadata MAY be used by tooling as required.
20
20
"""
@@ -26,7 +26,7 @@ class OpenAPI(BaseModel):
26
26
the default value would be a [Server Object](#serverObject) with a [url](#serverUrl) value of `/`.
27
27
"""
28
28
29
- paths : Paths = ... # type: ignore [assignment]
29
+ paths : Paths
30
30
"""
31
31
**REQUIRED**. The available paths and operations for the API.
32
32
"""
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class Operation(BaseModel):
66
66
In other cases where the HTTP spec is vague, `requestBody` SHALL be ignored by consumers.
67
67
"""
68
68
69
- responses : Responses = ... # type: ignore [assignment]
69
+ responses : Responses
70
70
"""
71
71
**REQUIRED**. The list of possible responses as they are returned from executing this operation.
72
72
"""
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Parameter(BaseModel):
18
18
19
19
"""Fixed Fields"""
20
20
21
- name : str = ... # type: ignore [assignment]
21
+ name : str
22
22
"""
23
23
**REQUIRED**. The name of the parameter.
24
24
Parameter names are *case sensitive*.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class RequestBody(BaseModel):
16
16
[CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation.
17
17
"""
18
18
19
- content : Dict [str , MediaType ] = ... # type: ignore [assignment]
19
+ content : Dict [str , MediaType ]
20
20
"""
21
21
**REQUIRED**. The content of the request body.
22
22
The key is a media type or [media type range](https://tools.ietf.org/html/rfc7231#appendix-D)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Response(BaseModel):
14
14
static `links` to operations based on the response.
15
15
"""
16
16
17
- description : str = ... # type: ignore [assignment]
17
+ description : str
18
18
"""
19
19
**REQUIRED**. A short description of the response.
20
20
[CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation.
You can’t perform that action at this time.
0 commit comments