Skip to content

Update ValidationsGenerator to drop the embedded SDK-generated attribute#67636

Merged
Youssef1313 merged 2 commits into
mainfrom
dev/ygerges/embedded-val-attr
Jul 8, 2026
Merged

Update ValidationsGenerator to drop the embedded SDK-generated attribute#67636
Youssef1313 merged 2 commits into
mainfrom
dev/ygerges/embedded-val-attr

Conversation

@Youssef1313

Copy link
Copy Markdown
Member

Related to dotnet/sdk#55163

Copilot AI review requested due to automatic review settings July 7, 2026 13:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the ValidationsGenerator incremental source generator to stop looking for the SDK-generated embedded ValidatableTypeAttribute, aligning the generator with the newer SDK behavior referenced in dotnet/sdk#55163.

Changes:

  • Removed discovery of Microsoft.Extensions.Validation.Embedded.ValidatableTypeAttribute.
  • Simplified validatable-type collection to only consider the framework Microsoft.Extensions.Validation.ValidatableTypeAttribute (plus endpoint-derived discovery).

Comment thread src/Validation/gen/ValidationsGenerator.cs
@Youssef1313 Youssef1313 merged commit 3e156e1 into main Jul 8, 2026
25 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/embedded-val-attr branch July 8, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants