dotnet / dotnet/AspNetCore.Docs

Polymorphic model binding limitations

Open
#26,626 2 comments 1 reaction 0 assignees View on GitHub
doc-enhancement re-Safia Source - Docs.ms
Dominant language
C#
Stars
13.1k
Forks
24.6k
Avg merge
1d 3h
Merged PRs (30d)
97

Description

It seems that **Polymorphic model binding** has critical limitations worth, if not addressing, at least mentioning.
Probably complex objects, that is, objects containing other, even non-polymorphic objects are not supported .
The problem is described [here](https://stackoverflow.com/questions/73238046/json-deserialization-of-polymorphic-and-complex-objects-in-asp-net-core-without)

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: cfb00531-4ac6-8bf6-9bd8-1eed6446397f
* Version Independent ID: ed418d09-6c33-699a-0d48-9aabc99457be
* Content: [Custom Model Binding in ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/mvc/advanced/custom-model-binding?view=aspnetcore-6.0#polymorphic-model-binding)
* Content Source: [aspnetcore/mvc/advanced/custom-model-binding.md](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/advanced/custom-model-binding.md)
* Product: **aspnet-core**
* Technology: **aspnetcore-mvc**
* GitHub Login: @ardalis
* Microsoft Alias: **riande**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.