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
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
Request: http://localhost:5001/Customers/Create?Id=10&Name=John Result: 200 OK response with body having {"Id":10,"Name":"John","Address":null}
Request: http://localhost:5001/Customers/Create?Id=10&Name=John&Address.City=Redmondddddddddddddddd Result: 400 Bad Request with error {"Address.State":["The State field is required."]}
Request: http://localhost:5001/Customers/Create Result: 400 Bad Request with error {"Name":["The Name field is required."]} NOTE: For this case I excluded the type Customer itself
Expected: For the 2nd case, the data should be bound successfully without any validation errors and for the 3rd case the model should be null without any validation errors?
The text was updated successfully, but these errors were encountered:
I tried these scenarios.
Looks like case 2 is now working as expected. Request: http://localhost:5001/Customers/Create?Id=10&Name=John&Address.City=Redmondddddddddddddddd Result then: 400 Bad Request with error {"Address.State":["The State field is required."]} Result now: 200 OK response with body {"Id":10,"Name":"John","Address":{"City":"Redmondddddddddddddddd","State":null}}
Whereas case 3 is still the same. (Added Customer type to exclude filter) Request: http://localhost:5001/Customers/Create Result: 400 Bad Request with error {"Name":["The Name field is required."]}
For the following setup:
Following are the behaviors:
http://localhost:5001/Customers/Create?Id=10&Name=John
Result: 200 OK response with body having
{"Id":10,"Name":"John","Address":null}
http://localhost:5001/Customers/Create?Id=10&Name=John&Address.City=Redmondddddddddddddddd
Result: 400 Bad Request with error
{"Address.State":["The State field is required."]}
http://localhost:5001/Customers/Create
Result: 400 Bad Request with error
{"Name":["The Name field is required."]}
NOTE: For this case I excluded the type
Customer
itselfExpected: For the 2nd case, the data should be bound successfully without any validation errors and for the 3rd case the model should be null without any validation errors?
The text was updated successfully, but these errors were encountered: