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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-validationIssues related to model validation in minimal and controller-based APIs

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions