NeVeSpl / NTypewriter

File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.
https://nevespl.github.io/NTypewriter/
MIT License
126 stars 25 forks source link

Include System.Text.Json For Template Config #35

Closed Tristan10 closed 3 years ago

Tristan10 commented 3 years ago

Would you consider allowing the System.Text.Json NuGet package to be used in the compilation for the template config file? There's a mismatch between the result of String.ToCamelCase provided by this extension and the result of System.Text.Json.JsonNamingPolicy.CamelCase.ConvertName() which is the default in .NET Core. It causes issues when performing POST requests with the models generated by this extension.

Another option would be to utilize the above in the String.ToCamelCase method by default.

NeVeSpl commented 3 years ago

System.Text.Json will be available in version 0.1.11.