.generator/src/generator/openapi.py in datadog_api_client-2.24.0 vs .generator/src/generator/openapi.py in datadog_api_client-2.25.0
- old
+ new
@@ -164,10 +164,12 @@
def models(spec):
name_to_schema = {}
for path in spec["paths"]:
+ if path.startswith("x-"):
+ continue
for method in spec["paths"][path]:
operation = spec["paths"][path][method]
for content in operation.get("parameters", []):
if "schema" in content:
@@ -187,9 +189,11 @@
def apis(spec):
operations = {}
for path in spec["paths"]:
+ if path.startswith("x-"):
+ continue
for method in spec["paths"][path]:
operation = spec["paths"][path][method]
tag = operation.get("tags", [None])[0]
operations.setdefault(tag, []).append((path, method, operation))