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

Serialization does not work in .NET7 #467

Closed
Jericho opened this issue Sep 27, 2022 · 1 comment
Closed

Serialization does not work in .NET7 #467

Jericho opened this issue Sep 27, 2022 · 1 comment
Assignees
Labels
Enhancement New feature or request
Milestone

Comments

@Jericho
Copy link
Owner

Jericho commented Sep 27, 2022

Metadata for type 'foo' was not provided by TypeInfoResolver of type 'StrongGrid.Json.StrongGridJsonSerializerContext'.
If using source generation, ensure that all root types passed to the serializer have been indicated with 'JsonSerializableAttribute', along with any types that might be serialized polymorphically.

This exception occurs when a type was omitted from the serialization context either accidentally (for example, all the enum types are omitted) or intentionally (for example, InboundEmail is omitted because System.Text.Json source generation cannot handle the ReadOnly<Span> on the Encoding type). FYI: the problem with the Encoding type is addressed in #466.

@Jericho Jericho added the Enhancement New feature or request label Sep 27, 2022
@Jericho Jericho added this to the 0.94.0 milestone Sep 27, 2022
@Jericho Jericho self-assigned this Sep 27, 2022
Jericho added a commit that referenced this issue Sep 27, 2022
@Jericho
Copy link
Owner Author

Jericho commented Sep 30, 2022

🎉 This issue has been resolved in version 0.94.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant