We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cbe325 commit 7b1c131Copy full SHA for 7b1c131
openapi_python_client/parser/openapi.py
@@ -57,7 +57,7 @@ def from_data(
57
operation: Optional[oai.Operation] = getattr(path_data, method)
58
if operation is None:
59
continue
60
- tag = utils.PythonIdentifier(value=(operation.tags or ["default"])[0], prefix="tag")
+ tag = utils.PythonIdentifier(value=operation.__dict__.get('x-code-tag') or (operation.tags or ["default"])[0], prefix="tag")
61
collection = endpoints_by_tag.setdefault(tag, EndpointCollection(tag=tag))
62
endpoint, schemas, parameters = Endpoint.from_data(
63
data=operation,
0 commit comments