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

Expose ability to over-control complex property serialization #658

Closed
xuzhg opened this issue Aug 9, 2022 · 4 comments
Closed

Expose ability to over-control complex property serialization #658

xuzhg opened this issue Aug 9, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@xuzhg
Copy link
Member

xuzhg commented Aug 9, 2022

Assemblies affected
Which assemblies and versions are known to be affected e.g. ASP.NET Core OData 8.x

Describe the bug
Recently, We have had customers who want to omit the null complex property.

So far, we don't have a better for them to omit null complex property. As a workaround, they have to override the "CreateSelectExpandNode" virtual method to change the "SelectExpandNode" returns from this method.

This is ugly because "SelectExpandNode" is an "entity scope" object used to control all entities' serialization for the same type.

So, we'd like to have a better "overridable" method for customers to use to control the serialization of the complex.

@corranrogue9 corranrogue9 added the enhancement New feature or request label Aug 9, 2022
@corranrogue9
Copy link
Contributor

We need to make sure that the client can handle these responses before supporting this on the service side.

@chrisspre
Copy link
Contributor

see #657

@corranrogue9
Copy link
Contributor

Can we make sure to also create the other issues where needed?

@xuzhg
Copy link
Member Author

xuzhg commented Aug 24, 2022

created a separate issue for omit-values prefer header at server side, see details at: #672

@xuzhg xuzhg closed this as completed Aug 24, 2022
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

3 participants