Exclude class discriminator
See original GitHub issueRight now in Json { }
we cannot disable write classDiscriminator
. In source code i found that class discriminator can be ignored if we change writePolymorphic boolean
inside encodePolymorphically
in StreamingJsonEncoder
. Can i somehow change it without fully fork your library and change all layers? Maybe somehow with extension
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How are serializer discriminator groups used for exclusion ...
1 Answer 1 · Thanks Thomas. I understand how a group can be added to a property. · discriminator is a property, like...
Read more >Is It Illegal For My Boss To Exclude Me From Work Events?
You can prove discrimination if you have evidence that your career suffered due to exclusion based on your membership in a protected class,...
Read more >Annotations - serializer Documentation (master)
@Exclude¶. This annotation can be defined on a property or a class to indicate that the property or class should not be serialized/unserialized....
Read more >Title IX and Sex Discrimination - Department of Education
Title IX protects people from discrimination based on sex in education programs ... on the basis of sex, be excluded from participation in, ......
Read more >Inheritance and Polymorphism - Swagger
In our example, the discriminator points to the objectType property that contains the data type name. The discriminator is used with anyOf or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What’s your use case for excluding the discriminator? You won’t be able to decode polymorphic data without it.
I’ll close this because #1247 already mentions this use-case — feel free to continue the discussion there