Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make IValidatableObject handling more resilient for MemberNames #61778

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

Merged
merged 1 commit into from
May 2, 2025

Conversation

captainsafia
Copy link
Member

@captainsafia captainsafia commented May 2, 2025

Closes #61739.

cc: @sbomer

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label May 2, 2025
@captainsafia captainsafia added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-validation Issues related to model validation in minimal and controller-based APIs and removed area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions labels May 2, 2025
Assert.Equal(string.Empty, globalError.Key);
Assert.Equal("Data must be positive.", globalError.Value.Single());

var multiType = new TestValidatableTypeInfo(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should be a second test

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will address this in one of the next PRs I do in this area.

@captainsafia captainsafia merged commit d12915f into main May 2, 2025
27 checks passed
@captainsafia captainsafia deleted the safia/member-names-fix branch May 2, 2025 22:43
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview5 milestone May 2, 2025
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 feature-validation Issues related to model validation in minimal and controller-based APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Min API validation throws when IValidatableObject returns ValidationResult without MemberNames
2 participants