Skip to content

Support unions in ValidationsGenerator #68268

Description

@Youssef1313

ValidationsGenerator today doesn't work with unions. What likely needs to happen is:

  • Update the source generator so that it recognize union, and generates validatable type info for all the union cases.
  • The validations generator shouldn't ignore validating the Value property. This property is likely to have IsImplicitlyDeclared = true which the generator skips today.

Activity

  1. added
    area-minimal
    feature-validation
    on Aug 7, 2026
  2. added this to the Backlog milestone on Aug 26, 2026
  3. self-assigned this
    on Aug 27, 2026
  4. DeagleGross commented on Sep 3, 2026

    @DeagleGross
    Member

    Fixed in #68846; will be included in net11 RC2; closing

  5. modified the milestones: Backlog, 11.0-rc2 on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-minimalfeature-validation

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions