-
Notifications
You must be signed in to change notification settings - Fork 475
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
JsonIgnore with condition incorrectly ignoring property when using OData $select query with [EnableQuery] endpoint #2825
Comments
Thanks @radderz for reporting this issue. We currently don't evaluate conditions applied to the |
Well I think option 2 is better than option 1 since more is better than missing. more just means larger packets and more cost on the deserialization side which is important in Blazor WASM. The library that I would have through was being used is System.Text.Json rather than Newtonsoft.Json and the ignore attribute I am talking about is from System.Text.Json. This isn't a third party library that I am talking about. |
When using a class like above, on a standard ASP.NET Core controller like below:
Doing a query like /api/MyClass?$select=someReferenceId will return an array of blank objects instead of 1 blank object and one with the someReferenceId.
The text was updated successfully, but these errors were encountered: