cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
403 stars 134 forks source link

Make valid method names from extension operation name #246

Closed BlueGone closed 1 year ago

BlueGone commented 2 years ago

When using an extension operation name, the name could not match the method naming convention, when it should.

I had to alias methodName as genUtilsMethodName, to not shadow this.methodName property. I am not a fan of this solution, tell me if you prefer another one.

luisfpg commented 1 year ago

Actually, we use the x-operation-name as the actual method name, with no case transformations... I don't think this is something we should change...

BlueGone commented 1 year ago

If this is by design, fair enough. I close this.