Replies: 2 comments
|
Not work anymore with JsonConverter Attribute |
0 replies
|
After many try it works without Attributes on FieldEntity [JsonConverter(typeof(JsonSubtypes), "kind")]
[JsonSubtypes.KnownSubType(typeof(StringFieldEntity), "string")]But only with options.ConfigureJson(p => p.Configure(s => s.Converters.Add(JsonSubtypesConverterBuilder
.Of(typeof(FieldEntity), "kind")
.RegisterSubtype(typeof(StringFieldEntity), "string")
.SerializeDiscriminatorProperty()
.Build())));Any idea why ? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
I wan't to made a CMS with CQRS/ES support
I have field abstraction support and i should store this abstraction
Code
Case
When I wan't to store it it not works (that's normal because I have not configure serializer)
Then I configure it like this
It doesn't work anymore Converter has never called
Library used : https://github.com/manuc66/JsonSubTypes
Thank you
All reactions