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

Fixed -Add underscores automatically when space are present #182 #192

Merged
merged 3 commits into from
Dec 14, 2018

Conversation

jiachen1120
Copy link
Contributor

@NicholasAzar Fixed #182
The space will be exchanged to underscores when it's present in the variables name.

@DSchrupert DSchrupert self-requested a review December 11, 2018 22:22
Copy link
Member

@DSchrupert DSchrupert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any test cases that can be added for this?

@jiachen1120
Copy link
Contributor Author

@NicholasAzar Sure, I will try to add some test cases into OpenApiGeneratorTest and SwaggerGeneratorTest. For example, build a simple .yml config with invalid variable name. Then generate based on this .yml and using reflection to check the fields. Dose this way make sense?

@DSchrupert DSchrupert merged commit 903d34e into networknt:develop Dec 14, 2018
@DSchrupert
Copy link
Member

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.

2 participants