Skip to content

Commit df6a802

Browse files
authored
updates explicit x-merge-overrides handling to handle generic extensions (#1703)
1 parent 1542a04 commit df6a802

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
@@ -267,7 +267,7 @@ def operation_specs(specs):
267267
for version, spec in specs.items():
268268
by_operation[version] = {}
269269
for path in spec["paths"]:
270-
if path == "x-merge-override":
270+
if path.startswith("x-"):
271271
continue
272272
for method, operation in spec["paths"][path].items():
273273
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
@@ -219,7 +219,7 @@ def models(spec):
219219
name_to_schema = {}
220220

221221
for path in spec["paths"]:
222-
if path == "x-merge-override":
222+
if path.startswith("x-"):
223223
continue
224224
for method in spec["paths"][path]:
225225
operation = spec["paths"][path][method]
@@ -290,7 +290,7 @@ def apis(spec):
290290
operations = {}
291291

292292
for path in spec["paths"]:
293-
if path == "x-merge-override":
293+
if path.startswith("x-"):
294294
continue
295295
for method in spec["paths"][path]:
296296
operation = spec["paths"][path][method]

0 commit comments

Comments
 (0)