Replies: 2 comments
-
Not work anymore with JsonConverter Attribute |
Beta Was this translation helpful? Give feedback.
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 ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions