-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Describe the bug
The annotations that we add for validations are not getting invoked for polymorphic input classes. They are getting invoked only for the non-polymorphic classes.
Data model validators are not being invoked for request input data which is of type polymorphic data. In general, all the validators are being fired up before passing to actual implementation of controller code.
To Reproduce
Steps to reproduce the behavior:
- Using this version of ASP.NET Core 2.2
- Run this code '....'
- With these arguments '....'
- See error
Expected behavior
in Asp.Net framework, irrespective on input data model (whether it is normal (or) polymorphic) all the validators gets invoked and thrown the exception in right format. After moving to asp.net core as well, validators should work as expected earlier.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Include the output of dotnet --info