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

Add handling for parenthesis to CSharpPropertyNameGenerator #1388

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

jasonterando
Copy link
Contributor

Hi, because life is hard, there are companies that include parenthesis characters in property names in their Swagger/OpenAPI definitions. As an example, the Vertex sales tax API has a property called timeElapsed(ms) in it.

This patch replaces opening parenthesis with an underscore, and removes closing parenthesis.

I'm attaching the Vertex swagger doc for reference:
VertexRestApi1.json.zip

@RicoSuter RicoSuter merged commit 093a76e into RicoSuter:master Jul 14, 2021
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