Skip to content

Fix handling for Name property on DisplayAttribute #61888

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 2 commits into from
May 13, 2025

Conversation

captainsafia
Copy link
Member

Contributes towards #61589.

There's more work to do to get the implementation to process localization-based resource types (we need to access the attribute at runtime and call the GetName attribute at runtime) but approach this incrementally to make progress.

@github-actions github-actions bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label May 12, 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 12, 2025
@BrennanConroy
Copy link
Member

Add a test?

@captainsafia
Copy link
Member Author

@BrennanConroy We already have a test that covers if [Display(Name = "")] is handled but I added a test for the negative case just now.

@captainsafia captainsafia merged commit de037b2 into main May 13, 2025
27 checks passed
@captainsafia captainsafia deleted the safia/vsg-displayname-fix branch May 13, 2025 14:26
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview5 milestone May 13, 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.

2 participants