10000 Fix sanitizeTag to retain numbers and underscore in tag names by mbohlool · Pull Request #4050 · swagger-api/swagger-codegen · GitHub
[go: up one dir, main page]

Skip to content

Fix sanitizeTag to retain numbers and underscore in tag names #4050

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

Merged
merged 1 commit into from
Oct 22, 2016

Conversation

mbohlool
Copy link
Contributor
@mbohlool mbohlool commented Oct 21, 2016

PR checklist

  • Read the contribution guildelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change. (For in 8000 stance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)

I've run bin/run-all-petstore but there are lots of unrelated changes, and in a glance I could not see any change related to this PR. I am just guessing petstore samples are out of date. Let me know if you want me to add those (huge) changes.

  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

I've changed the pattern sanitizeTag uses to remove invalid characters and also added underscore to tags starting with a number. Also added some test cases.

fixes #2657

@wing328 wing328 added this to the v2.2.2 milestone Oct 22, 2016
@wing328 wing328 merged commit 92c474b into swagger-api:master Oct 22, 2016
@wing328
Copy link
Contributor
wing328 commented Oct 22, 2016

@mbohlool thanks for the contribution and adding various tests to cover the change.

@mbohlool
Copy link
Contributor Author
mbohlool commented Nov 1, 2016

Happy to contribute. How can I get this change into my maven workflow? (sorry not a maven expert), I have plugin version "2.2.2-SNAPSHOT" but it doesn't work.

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

Successfully merging this pull request may close these issues.

Generator - numbers getting stripped from tag names
2 participants
0