Skip to content
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

Why is operationId defaulting to the method name? #48

Open
CristianPupazan opened this issue Jul 26, 2017 · 1 comment
Open

Why is operationId defaulting to the method name? #48

CristianPupazan opened this issue Jul 26, 2017 · 1 comment
Labels

Comments

@CristianPupazan
Copy link

If you do not set nickName, the operationId defaults to the method name. I can't figure out where this behaviour comes from. Shouldn't this remain empty if not provided ?

If anyone could shed some light on this would be greatly appreciated.

@krnhotwings
Copy link

Seems to be coming from:

https://github.com/swagger-api/swagger-core/blob/f6051e32d89af32e5d963453250c24aa9ab24531/modules/swagger-jaxrs/src/main/java/io/swagger/jaxrs/Reader.java#L828-L832

Defaults operationId to a method name, unless a non-empty nickname is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants