Skip to content

In .NET 8, a request Record with a property decorated with [FromBody] is no longer model-binded #58319

Open
@davejclausen

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Under .NET 6, we had a controller Patch request method taking a Record as the parameter. The Record had a bool property decorated with the [FromBody] attribute. This was correctly model-binded. But under .NET 8, it is not model-binded -- appearing instead as missing.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8.0

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions