Tsoa: operationId Question

Created on 29 Jan 2018  路  5Comments  路  Source: lukeautry/tsoa

I'm making some adjustments locally to use tsoa in conjunction with swagger-tools. I was just curious, what was the reasoning behind not just making the operationId that is generated for each route in the swagger file not just match the method name(s) in the controller(s) exactly rather than automatically uppercase the first character as it does currently?

help wanted

Most helpful comment

I think there probably should be an @OperationId decorator that overrides any 'inferred' operationId

All 5 comments

To be clear I have a workaround for my purposes but still, I was curious as to the reasoning behind this logic.

I also didn't like the idea that in 2.x the Name of the Controller is no longer present in the OperiationId.

We should make this more flexible.

I think there probably should be an @OperationId decorator that overrides any 'inferred' operationId

I've created a pull request that adds OperationId() decorator #273

Fixed with #277

Was this page helpful?
0 / 5 - 0 ratings