Skip to content

Commit

Permalink
Add handling for parenthesis to CSharpPropertyNameGenerator (#1388)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Terando <jason.t@digitalroominc.com>
  • Loading branch information
jasonterando and Jason Terando authored Jul 14, 2021
1 parent 5a1d4a6 commit 093a76e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public virtual string Generate(JsonSchemaProperty property)
.Replace("$", string.Empty)
.Replace("[", string.Empty)
.Replace("]", string.Empty)
.Replace("(", "_")
.Replace(")", string.Empty)
.Replace(".", "-")
.Replace("=", "-")
.Replace("+", "plus"), true)
Expand Down

0 comments on commit 093a76e

Please sign in to comment.