Closed wallymathieu closed 1 year ago
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1662 another way would be to set the schema info for a type and include the different subtypes in an explicit manner
We also have this feature: https://github.com/dotnet/runtime/issues/63747
While for Newtonsoft we have (for instance): https://www.newtonsoft.com/json/help/html/serializetypenamehandling.htm
Then there is the issue of too broad types: https://owasp.org/www-chapter-vancouver/assets/presentations/2020-05_Exploiting_and_Preventing_Deserialization_Vulnerabilities.pdf
For Java you have the popular Jackson library where you have a similar approach. https://stackoverflow.com/questions/57626808/rest-how-to-implement-polymorphic-post-end-point-abstract-types-need-to-be-mapp
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1662 another way would be to set the schema info for a type and include the different subtypes in an explicit manner
We also have this feature: https://github.com/dotnet/runtime/issues/63747
While for Newtonsoft we have (for instance): https://www.newtonsoft.com/json/help/html/serializetypenamehandling.htm
Then there is the issue of too broad types: https://owasp.org/www-chapter-vancouver/assets/presentations/2020-05_Exploiting_and_Preventing_Deserialization_Vulnerabilities.pdf
For Java you have the popular Jackson library where you have a similar approach. https://stackoverflow.com/questions/57626808/rest-how-to-implement-polymorphic-post-end-point-abstract-types-need-to-be-mapp