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

Move serialization constructors and raw field #3414

Merged
merged 22 commits into from
Jun 4, 2024

Conversation

jorgerangel-msft
Copy link
Contributor

This PR migrates the construction of the existing serialization constructors for a model to the MrwSerializationTypeProvider class. With this change, all serialization related code is generated with a models serialization class file. It also adds the support for generating an additional constructor to deserialize into a model with an additional raw data parameter.

@azure-sdk
Copy link
Collaborator

azure-sdk commented May 21, 2024

API change check

APIView has identified API level changes in this PR and created following API reviews.

Microsoft.Generator.CSharp
Microsoft.Generator.CSharp.ClientModel

Copy link
Member

@m-nash m-nash left a comment

Choose a reason for hiding this comment

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

Please add the unit tests before merging

@jorgerangel-msft jorgerangel-msft added this pull request to the merge queue Jun 4, 2024
Merged via the queue into microsoft:main with commit f853b72 Jun 4, 2024
21 checks passed
@jorgerangel-msft jorgerangel-msft deleted the serial-ctor-new branch June 4, 2024 15:42
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.

Moving serialization model constructors
5 participants