Comments (6)
Why can't you submit an integer value instead of a string? String for enums will require to write a plenty of code to handle only that specific case.
from jsonpatch.
We could totally use ints, and have previously, but for this project we're using the string values instead.
from jsonpatch.
On the afterthought and after reading documentation about EnumMember it seems to me that it is a good candidate to include in the library since it's a standard way of serializing/deserializing enums amongst various serialization libraries - contracts, json.net, etc.
from jsonpatch.
I think EnumMember is the way to go - it looks like a good candidate when an API wants to support a string value instead of an integer for legibility etc.
from jsonpatch.
Did this ever gain any traction? @chriswithpants did you have an interim solution you could post? Doesn't look like this library is getting much love anymore.
from jsonpatch.
I think this would be good to add - happy to review a PR for inclusion :)
from jsonpatch.
Related Issues (20)
- Add option to make paths case-insensitive HOT 7
- Add support for "move" operation HOT 4
- "add" should not instantiate objects or arrays for intermediate parts of the path HOT 7
- When setting values, retain the original object references if types are compatible (instead of serializing/deserializing)
- Support MVC 6 HOT 1
- Release JsonPatch 2.0.0 HOT 1
- Respect JsonFormatter settings and [DataMember] attributes. HOT 1
- Support for IDictionary HOT 5
- Update NuGet package version HOT 3
- Issue replacing an List<T> property HOT 1
- NuSpec file has different dependency than csproj HOT 1
- Support Dictionaries HOT 3
- DTO example not working? HOT 3
- repository.Save(objectToUpdate); HOT 1
- Support Swagger/Swashbuckle HOT 1
- Position larger than array size
- Patch operation replace does not support value replacement of a property in a an element in an array
- Remove new() constraint for TEntity generic parameter of JsonPatchDocument
- Support ASP.NET Core Controllers
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 jsonpatch.