Skip to content

When endpoint return ValidationProblem and has errors the property errors doesn't have values. #59052

@jvsancho80

Description

@jvsancho80

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When endpoint return ValidationProblem and has errors the property errors doesn't have values in .Net 8 the same code works ok. I believe return TypedResults.Problem instead of TypedResults.ValidationProblem. My code return TypedResults.ValidationProblem. I have checked it and my code is correct.

Net 8
Image

Net 9
Image

My code works in Net 8
Image

Expected Behavior

The code return this because my code return TypedResults.ValidationProblems. Net8 the same code works ok.

Image

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

Net 9

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions