Skip to content

Commit 7ae017f

Browse files
committed
CI fixes
1 parent 9a41948 commit 7ae017f

File tree

22 files changed

+614
-155
lines changed

22 files changed

+614
-155
lines changed

src/openapi_client/classes/emit.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def emit_classes(schemas: Dict[str, SchemaOrReference]) -> List[cst.ClassDef]:
7979
# OpenAPI 3.2.0 objects
8080
_OPENAPI_3_2_0_FIELDS = (
8181
"openapi",
82-
"$self", "self_",
82+
"$self",
83+
"self_",
8384
"jsonSchemaDialect",
8485
"servers",
8586
"webhooks",
@@ -104,19 +105,30 @@ def emit_classes(schemas: Dict[str, SchemaOrReference]) -> List[cst.ClassDef]:
104105
"callbacks",
105106
"pathItems",
106107
"mediaTypes",
107-
"$ref", "ref",
108-
"in", "in_",
109-
"schema", "schema_",
108+
"$ref",
109+
"ref",
110+
"in",
111+
"in_",
112+
"schema",
113+
"schema_",
110114
"{name}",
111115
"{expression}",
112116
"HTTP Status Code",
113117
"/{path}",
114118
"paths",
115-
"info"
119+
"info",
116120
)
117121

118122
_ALL_KEYWORDS = (
119-
"ServerVariable", "PathItem", "ExternalDocumentation", "RequestBody", "MediaType", "SecurityScheme", "OAuthFlows", "OAuthFlow", "SecurityRequirement",
123+
"ServerVariable",
124+
"PathItem",
125+
"ExternalDocumentation",
126+
"RequestBody",
127+
"MediaType",
128+
"SecurityScheme",
129+
"OAuthFlows",
130+
"OAuthFlow",
131+
"SecurityRequirement",
120132
"$ref",
121133
"$self",
122134
"/{path}",

src/openapi_client/classes/parse.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def extract_classes_from_ast(module: cst.Module, spec: OpenAPI) -> None:
9595
# OpenAPI 3.2.0 objects
9696
_OPENAPI_3_2_0_FIELDS = (
9797
"openapi",
98-
"$self", "self_",
98+
"$self",
99+
"self_",
99100
"jsonSchemaDialect",
100101
"servers",
101102
"webhooks",
@@ -120,19 +121,30 @@ def extract_classes_from_ast(module: cst.Module, spec: OpenAPI) -> None:
120121
"callbacks",
121122
"pathItems",
122123
"mediaTypes",
123-
"$ref", "ref",
124-
"in", "in_",
125-
"schema", "schema_",
124+
"$ref",
125+
"ref",
126+
"in",
127+
"in_",
128+
"schema",
129+
"schema_",
126130
"{name}",
127131
"{expression}",
128132
"HTTP Status Code",
129133
"/{path}",
130134
"paths",
131-
"info"
135+
"info",
132136
)
133137

134138
_ALL_KEYWORDS = (
135-
"ServerVariable", "PathItem", "ExternalDocumentation", "RequestBody", "MediaType", "SecurityScheme", "OAuthFlows", "OAuthFlow", "SecurityRequirement",
139+
"ServerVariable",
140+
"PathItem",
141+
"ExternalDocumentation",
142+
"RequestBody",
143+
"MediaType",
144+
"SecurityScheme",
145+
"OAuthFlows",
146+
"OAuthFlow",
147+
"SecurityRequirement",
136148
"$ref",
137149
"$self",
138150
"/{path}",

0 commit comments

Comments
 (0)