Skip to content

Commit cba31a4

Browse files
authored
update explicit x-merge-overrides handling to generic extensions (#2051)
1 parent 2fc0ac6 commit cba31a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.generator/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def operation_specs(specs):
311311
for version, spec in specs.items():
312312
by_operation[version] = {}
313313
for path in spec["paths"]:
314-
if path == "x-merge-override":
314+
if path.startswith("x-"):
315315
continue
316316
for method, operation in spec["paths"][path].items():
317317
by_operation[version][operation["operationId"]] = openapi.Operation(

.generator/src/generator/openapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def models(spec):
209209
name_to_schema = {}
210210

211211
for path in spec["paths"]:
212-
if path == "x-merge-override":
212+
if path.startswith("x-"):
213213
continue
214214
for method in spec["paths"][path]:
215215
operation = spec["paths"][path][method]
@@ -349,7 +349,7 @@ def apis(spec):
349349
operations = {}
350350

351351
for path in spec["paths"]:
352-
if path == "x-merge-override":
352+
if path.startswith("x-"):
353353
continue
354354
for method in spec["paths"][path]:
355355
operation = spec["paths"][path][method]

0 commit comments

Comments
 (0)