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

Better naming control #250

Closed
stojsavljevic opened this issue Apr 26, 2018 · 0 comments
Closed

Better naming control #250

stojsavljevic opened this issue Apr 26, 2018 · 0 comments
Labels
enhancement v2 Feature will be implemented in v2.0 only (master branch)

Comments

@stojsavljevic
Copy link
Contributor

I want to have more control over naming logic for Java parameters and method names.
Currently, there is a logic that takes displayName attribute (#177) but that might not be sufficient.
Instead I want to introduce a config option for naming logic based on either on displayName, some custom annotation or plugin default logic.

New configuration option will be logicForParamsAndMethodsNaming and it will accept following values:

  • DEFAULT
  • DISPLAY_NAME - for considering displayName attribute when available. It will be cleaned for Java conventions.
  • ANNOTATION - for considering custom annotation called javaName on method definition. It will be taken as is.

This logic will apply when generating names for:

  • headers
  • queryParameters
  • uriParameters
  • method names
@stojsavljevic stojsavljevic added enhancement v2 Feature will be implemented in v2.0 only (master branch) labels Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement v2 Feature will be implemented in v2.0 only (master branch)
Projects
None yet
Development

No branches or pull requests

1 participant