-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Kotlin] enumPropertyNaming UPPERCASE should separate words with _ #4062
Conversation
Could you please add a unit test for this that the next change in the code won't change it back again or does something else so it is documented how enums should be named? |
88a24c9
to
f7e4420
Compare
@Fjolnir-Dvorak Sorry for the delay. CirleCI fails is related to "Docker Layer Caching is not available on your plan.". Not related to PR and looks like a configuration issue. |
yes, I will check that, thank you for that |
Any news on this PR? Looking forward to it 🙂 |
Well, I didn't meant those tests but simple unit tests but I guess that works, too. Thank you for adding some tests |
@Fjolnir-Dvorak Sorry, I looked at the existing tests I could see and didn't find how or where to add such unit tests. Any advice, is welcome... Where would the unit tests be in the code? Do you have any example of existing unit tests in the repo or any doc for it? I did have a look at the content of |
@lemoinem If you want I will look into it when this is merged. That test is not required. It is just nice to have those, especially because those "configurations" are easy to break by other people and are actually broken in many generators. |
Drone.io test failure already fixed in the master. |
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
. If contributing template-only or documentation-only changes which will change sample output, be sure to build the project first.master
,4.1.x
,5.0.x
. Default:master
./cc Kotlin: @jimschubert @dr4ke616 @karismann @Zomzog
Description of the PR
When using
enumPropertyNaming=UPPERCASE
with the Kotlin generators, words aren't separated by_
, as they should be.