Skip to content

Better camelization: removed duplication, replace also spaces #5693

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

Closed
wants to merge 13 commits into from

Conversation

SimonIT
Copy link
Contributor

@SimonIT SimonIT commented Mar 24, 2020

PR checklist

  • Read the contribution guidelines.
  • If contributing template-only or documentation-only changes which will change sample output, build the project before.
  • Run the shell script(s) under ./bin/ (or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).
  • File the PR against the correct branch: master, 4.3.x, 5.0.x. Default: master.
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

I hope nothing is missing. If not, please tell me.
This PR fixes #5627 and fixes #311 (I think). It removes also the duplication with removing _ and - and adds removing of spaces. I added also tests.

@SimonIT
Copy link
Contributor Author

SimonIT commented Apr 5, 2020

Is there anything that hinders the PR to get merged?

@SimonIT
Copy link
Contributor Author

SimonIT commented Apr 13, 2020

By the way, I don't understand why the Circle CI build fails. I hope it's not my fault. I'm wondering why the rust server tests are failing. It seems that some spaces where removed. From the log:

-    pub map_property: Option<HashMap<String, String>>,
+    pub map_property: Option<HashMap<String,String>>,

I can't say whether this is my fault or not, but it shouldn't be mine because there shouldn't be any camelization involved.

SimonIT and others added 10 commits April 14, 2020 19:15
# Conflicts:
#	modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/StringUtils.java
#	samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/.openapi-generator/FILES
#	samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/.openapi-generator/FILES
#	samples/client/petstore/typescript-node/default/.openapi-generator/FILES
#	samples/client/petstore/typescript-node/npm/.openapi-generator/FILES
#	samples/server/petstore/php-symfony/SymfonyBundle-php/.openapi-generator/FILES
@SimonIT SimonIT closed this Dec 24, 2020
@sbu-WBT sbu-WBT deleted the better-camelization branch December 24, 2020 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[elm-client] Spaces in definition names will break [BUG] [DART] Spaces in class names
2 participants