Comments (2)
Thanks @radderz for reporting this issue. We currently don't evaluate conditions applied to the JsonIgnore
attribute. Implementing support for that may also not be something that the team might consider in the short to medium term. As it is, the library supports only a small subset of the Newtonsoft.Json property attributes, mostly because of limited resources coupled with the challenge of keeping up with the evolution of a third-party library. What then remains to determine what is the "bare minimum" behaviour to implement for scenarios where a condition is applied to the JsonIgnore
attribute:
i) Ignore the condition - meaning we don't serialize the property.
ii) Ignore attributes that have conditions - meaning we serialize the property.
from webapi.
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.
from webapi.
Related Issues (20)
- GeneateActionLink should apply lowercase for bindingParameterType HOT 1
- ODataConventionModelBuilder GetEdmModel() System.Data.Linq FileNotFoundException HOT 2
- NU1608: Detected package version outside of dependency constraint: Microsoft.AspNet.WebApi.OData 5.7.0 requires Microsoft.AspNet.WebApi.Core (>= 5.2.2 && < 5.3.0) but version Microsoft.AspNet.WebApi.Core 5.3.0 was resolved. HOT 2
- The property '{propertyname}' cannot be used in the $expand query option HOT 6
- OData-prefix missing in delta responses
- Make the query validator thread-safe since the validator is singleton
- 'Microsoft.AspNet.WebApi.Core 5.3.0' is not compatible with 'Microsoft.AspNet.OData 7.7.2 constraint: Microsoft.AspNet.WebApi.Core (>= 5.2.2 && < 5.3.0)' HOT 2
- Odata MongoDb lt filtering HOT 3
- [Microsoft.AspNet.OData v7.7.3] Request.ODataProperties().NextLink is always null
- InvalidOperationException thrown from CreateRequestContainer cause performance issue HOT 9
- IHttpContextAccessor.HttpContext.User is not always authenticated (when it should) when invoked by IModelCacheKeyFactory HOT 5
- Group by a property of a derived type is not supported HOT 1
- Perf: OData performance regressions found between 6.0.0 and 7.7.4
- Invalid JSON when using List<List<?>> property HOT 2
- Faulty link generation when creating entities with string key and slashes HOT 1
- OData response with custom ODataOutputFormatter HOT 2
- WebApi v7 doesn't support property Instance annotation without property value
- Filtering on `DateTime` without timezone information. HOT 2
- $select on sub property works on ASP.NET OData but throw exception on Core OData HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapi.