Description
While trying out slc loopback:export-api-def
and swagger codegen to generate client side SDKs, I noticed that swagger codegen uses operationId
as the name for the generated method on the client side.
Currently, operationId
sometimes becomes like User.prototype.__findById__accessTokens
. Then, the swagger.io generated Objective-C method for this becomes userPrototypeFindByIdAccessTokens...
. It looks unnecessarily wordy. For Swift, the method name becomes user.prototype.FindByIdAccessTokens
(this fails to compile as the Swing codegen doesn't escape ".
"s included in the method name. It can/should be fixed in the Swift codegen, but the issue of wordy method name still remains).
As it seems like a convention that usage of operationId
for method name for generated code, I think it would better make operationId
simpler and well suited for method name.