Skip to content

Conversation

marcominerva
Copy link
Contributor

@marcominerva marcominerva commented Jul 9, 2025

Updated ShouldTransformSymbolWithAttribute method in ValidationsGenerator.AttributeParser.cs class to support both class and record syntax nodes. Added a new test method CanValidateRecordTypesWithAttribute in ValidatableType.cs to validate record types with comprehensive scenarios for the ComplexType record.

Fixes #62315

Updated `ShouldTransformSymbolWithAttribute` to support
both class and record syntax nodes. Added a new test
method `CanValidateRecordTypesWithAttribute` in
`ValidatableType.cs` to validate record types with
comprehensive scenarios for the `ComplexType` record.
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 9, 2025
@github-actions github-actions bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label Jul 9, 2025
@martincostello martincostello 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 needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically labels Jul 9, 2025
@captainsafia captainsafia enabled auto-merge (squash) July 9, 2025 15:27
@captainsafia captainsafia merged commit d5d2a31 into dotnet:main Jul 9, 2025
29 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview7 milestone Jul 9, 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 community-contribution Indicates that the PR has been added by a community member 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.

ValidatatableTypeAttribute does not work on records
3 participants