-
-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method Names postfixed with Numbers #1952
Comments
I think it's because both are under the same Tag? I'm currently looking for a way to set an operationId on my spec to set the method name to something better. EDIT: See #314 |
@donkey-donkey @andreujuanc can you try our fork if that works as you'd expect? |
Can't at the moment. But just for the record, the current lib will use the operationId for naming, so that should be good enough if you have control over the spec. EDIT: Gave it a star. Will check as soon as I can. |
You'll want to set the new |
I think OP was asking "why the number suffix", and the answer is because I believe there is no operationId on their spec, and the paths are both on the same Tags. Ignoring the operationId would yield no change to the generated methods. |
@andreujuanc the pull request also changes the replacement pattern so I'd expect a different result for their use case, but will need them to try it since I can't see their OpenAPI spec |
When we use a
get
/apples/:id
and a get all
/apples/
the second one listed in the schema will turn into apples1 function in the generated code.
isnt the openapi spec to have the endpoints both named apples? but then we get silly apples1 function name?
am i missing something?
thanks
The text was updated successfully, but these errors were encountered: