Comments (1)
I used custom coders because the default serialization of union types wasn't very desirable to me.
Hum, if you are using Thoth.Json.Net on the server and Thoth.Json on the client, the JSON representation should not be a problem. Because you don't work by reading the JSON but by using the type you get when decoding the JSON.
It is almost impossible to have a default JSON representation which suits everyone one.
And to answer, your original question no you didn't miss something. It is just that Thoth.Json doesn't allow you to customize the default representation of the known types when using Auto modules. So, for now, it is a limitation
from thoth.json.giraffe.
Related Issues (9)
- Updating to Thoth.Json 3.0 breaks serialisation HOT 12
- Cannot generate auto encoder for System.Collections.Generic.IEnumerable HOT 3
- How to handle PATCH-style requests HOT 6
- Deserializer throws exception when request body is empty. HOT 6
- Issue while integrating with Giraffe HOT 1
- Deserialize date type string as string HOT 3
- Add tests HOT 11
- Remove setStatusCode from ThothSerializer.RespondRawJson HOT 2
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 thoth.json.giraffe.