diff --git a/.generator/conftest.py b/.generator/conftest.py index 7e5cf065c4a..0acc2114d03 100644 --- a/.generator/conftest.py +++ b/.generator/conftest.py @@ -282,7 +282,7 @@ def operation_specs(specs): for version, spec in specs.items(): by_operation[version] = {} for path in spec["paths"]: - if path == "x-merge-override": + if path.startswith("x-"): continue for method, operation in spec["paths"][path].items(): by_operation[version][operation["operationId"]] = openapi.Operation( diff --git a/.generator/src/generator/openapi.py b/.generator/src/generator/openapi.py index f33f6c18b84..11c3c9b3329 100644 --- a/.generator/src/generator/openapi.py +++ b/.generator/src/generator/openapi.py @@ -213,7 +213,7 @@ def models(spec): name_to_schema = {} for path in spec["paths"]: - if path == "x-merge-override": + if path.startswith("x-"): continue for method in spec["paths"][path]: operation = spec["paths"][path][method] @@ -238,7 +238,7 @@ def apis(spec): operations = {} for path in spec["paths"]: - if path == "x-merge-override": + if path.startswith("x-"): continue for method in spec["paths"][path]: operation = spec["paths"][path][method]