Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
jvsancho80 opened this issue Nov 19, 2024 · 0 comments
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc

Comments

@jvsancho80
Copy link

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

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label Nov 19, 2024
@martincostello martincostello added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc and removed needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
Projects
None yet
Development

No branches or pull requests

2 participants