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
Currently when we sent a payload with POST and PUT requests then the name of the fields in the payload should be exactly like the fields in the request class e.g:
{
"Id": 122,
"Name": "Ahmed",
"Age": 22
}
If we sent a request with a payload whose fields names start with small case letters then the values will not be binded
{
"id": 122,
"name": "Ahmed",
"age": 22
}
Solution:
The binding should work irrespective of the casing of the letters and Aspnet core also offers that feature.
The text was updated successfully, but these errors were encountered:
Currently when we sent a payload with POST and PUT requests then the name of the fields in the payload should be exactly like the fields in the request class e.g:
If we sent a request with a payload whose fields names start with small case letters then the values will not be binded
Solution:
The binding should work irrespective of the casing of the letters and Aspnet core also offers that feature.
The text was updated successfully, but these errors were encountered: