You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a new template but set -xf to None (no XML formatters).
Launch Swagger, make a POST request to cars.
Change the JSON Model property to null.
Notice you get a 406, not a 400.
Steps to reproduce
Generate a new template but set -xf to None (no XML formatters).
Launch Swagger, make a POST request to cars.
Change the JSON Model property to null.
Notice you get a 406, not a 400.
Expected behaviour
You should get a 400 with helpful model state errors.
Template
API
.NET Boxed Version
Latest
Visual Studio Version
VS22
.NET Version
.NET 7
The text was updated successfully, but these errors were encountered:
Describe the bug
Generate a new template but set -xf to None (no XML formatters).
Launch Swagger, make a POST request to cars.
Change the JSON Model property to null.
Notice you get a 406, not a 400.
Steps to reproduce
Generate a new template but set -xf to None (no XML formatters).
Launch Swagger, make a POST request to cars.
Change the JSON Model property to null.
Notice you get a 406, not a 400.
Expected behaviour
You should get a 400 with helpful model state errors.
Template
API
.NET Boxed Version
Latest
Visual Studio Version
VS22
.NET Version
.NET 7
The text was updated successfully, but these errors were encountered: