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

Cleanup CSharpJsonSerializerGenerator #1341

Conversation

unchase
Copy link
Contributor

@unchase unchase commented Mar 9, 2021

  • Remove ", " in CSharpJsonSerializerGenerator.GenerateForJsonLibrary
  • Add CSharpJsonSerializerGenerator.GenerateJsonConvertersArrayCode method
  • Fix FromJson and ToJson

Instead of #1339


Added the tests below:

To GeneralGeneratorTests:

  • When_using_SytemTextJson_without_JsonConverters_generates_FromJson_and_ToJson_correctly;
  • When_using_SytemTextJson_with_JsonConverters_generates_FromJson_and_ToJson_correctly;
  • When_using_NewtonsoftJson_without_JsonConverters_generates_FromJson_and_ToJson_correctly;
  • When_using_NewtonsoftJson_with_JsonConverters_generates_FromJson_and_ToJson_correctly.

Remove ", " in CSharpJsonSerializerGenerator.GenerateForJsonLibrary
Add CSharpJsonSerializerGenerator.GenerateJsonConvertersArrayCode method
Fix FromJson and ToJson
@unchase
Copy link
Contributor Author

unchase commented Mar 9, 2021

@RicoSuter @jeremyVignelles ready for review

@unchase unchase requested a review from RicoSuter March 16, 2021 08:25
@RicoSuter RicoSuter merged commit bc197cb into RicoSuter:master Mar 23, 2021
@unchase unchase deleted the chore/cleanup-csharp-json-serializer-generator branch March 23, 2021 14:32
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