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

[MPG] The serialization of reference types is not respecting ModelReaderWriterOptions #4994

Open
ArcturusZhang opened this issue Aug 13, 2024 · 0 comments
Labels
Mgmt This issue is related to a management-plane library.

Comments

@ArcturusZhang
Copy link
Member

The serialization part of reference types looks like this:

JsonSerializer.Serialize(writer, ExtendedLocation);

This is not taking the ModelReaderWriterOptions as a parameter, therefore if there is any readonly property in that model, it will never be serialized even if a J format is passed in.

@ArcturusZhang ArcturusZhang added the Mgmt This issue is related to a management-plane library. label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

No branches or pull requests

1 participant