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

Added support for serialization and deserialization of 'object' to static code generation #856

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

prochnowc
Copy link
Contributor

@prochnowc prochnowc commented Oct 6, 2023

This PR adds support for serialization and deserialization of 'object' as long as the type is a primitive type or is known to the static context.

Changes:

  • Added a IsKnownType() method to the StaticContext to determine whether a type is known to the context.
  • Added code generation for a StaticTypeResolver which resolves types known the context.
  • Modified code generation for StaticTypeDescriptor to use the StaticTypeResolver from the context.

@EdwardCooke What do you think ? If the approach is fine I will create an issue to reference this PR.

@EdwardCooke
Copy link
Collaborator

Sorry it’s taking so long. Work emergency. It may not be until tomorrow I get to look at this.

@EdwardCooke EdwardCooke merged commit 81735e6 into aaubry:master Oct 10, 2023
@EdwardCooke
Copy link
Collaborator

Just waiting for the build to complete and I'll get a release out

@aaubry
Copy link
Owner

aaubry commented Oct 10, 2023

This feature has been released in version 13.7.0.

@prochnowc prochnowc deleted the code-generation-object branch October 11, 2023 14:33
@prochnowc
Copy link
Contributor Author

Thanks for having this merged. The code generation should be much more usable now.

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.

3 participants