openapi-python-client icon indicating copy to clipboard operation
openapi-python-client copied to clipboard

Allow to override tag using `x-code-tag`

Open lee-elenbaas opened this issue 2 years ago • 3 comments

Allow to override tag as the grouping mechanism per endpoint using the 'x-code-tag' property on the operation

lee-elenbaas avatar May 28 '23 12:05 lee-elenbaas

Is x-code-tag standard or used by another popular tool? Or should we use a name specific to this tool?

I think this will require tweaking the underlying pydantic attribute. Also, this needs an end-to-end test added to verify it works as expected.

dbanty avatar Sep 13 '23 19:09 dbanty

i added e2e test for it i did not found something similar so x-code-tag is as good as any name IMO

lee-elenbaas avatar Sep 27 '23 06:09 lee-elenbaas

I'm still not clear on when you'd want to add an extra attribute to override the module name instead of modifying the tags directly (if you can edit the OpenAPI document anyway)

dbanty avatar Jan 06 '24 00:01 dbanty