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

Json source generation logic #53

Merged
merged 13 commits into from
Aug 20, 2020

Conversation

kevinwkt
Copy link

@kevinwkt kevinwkt commented Aug 12, 2020

A few things in this PR:

  1. Changed impl for dfs usage for better error handling (updated user facing error messages and made them as a singleton).
  2. Used Steve's new API and updated tests to use sourcegenerated code for (de)serialization.
  3. Created base source generation logic for simple pocos and collections (for the ones we support right now in System.Text.Json.Serializer.Metadata)
  4. Extension methods for typewrapper for full namespace detection and interface checks (e.g. IEnumerable, IList, etc).
  5. Tests for user-facing diagnostics.

Copy link

@layomia layomia left a comment

Choose a reason for hiding this comment

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

Will review generation logic shortly.

@kevinwkt kevinwkt marked this pull request as ready for review August 16, 2020 00:25
@kevinwkt kevinwkt requested a review from layomia August 20, 2020 04:34
Copy link

@layomia layomia left a comment

Choose a reason for hiding this comment

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

LGTM

@kevinwkt kevinwkt merged commit 8a838e3 into dotnet:JsonCodeGen Aug 20, 2020
scalablecory pushed a commit that referenced this pull request Sep 22, 2020
This fixes a bug in the openssl selfsign code where it's buffer was too small for the strings copied into it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants