Skip to content

Fields in request payload should bind even when they starts with small case letters #67

@ahmedanwar100

Description

@ahmedanwar100

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions