Skip to content

Move unified validation APIs to separate package #62070

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

Open
captainsafia opened this issue May 22, 2025 · 0 comments · May be fixed by #62071
Open

Move unified validation APIs to separate package #62070

captainsafia opened this issue May 22, 2025 · 0 comments · May be fixed by #62071
Assignees
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

Comments

@captainsafia
Copy link
Member

To support using the unified resolver APIs in more scenarios, we would like to move them to a new package instead of the Http.Abstractions package. To do this, we must:

  1. Create a new src/Validation directory that contains a Microsoft.Extensions.Validation project.
  2. Move the code from https://github.com/dotnet/aspnetcore/tree/main/src/Http/Http.Abstractions/src/Validation into the new directory under src/Validation/src.
  3. Move the code from https://github.com/dotnet/aspnetcore/tree/main/src/Http/Http.Abstractions/test/Validation into a new directory under src/Validation/test/Microsoft.Extensions.Validation.Tests.
  4. Move the code from https://github.com/dotnet/aspnetcore/tree/main/src/Http/Http.Extensions/gen/Microsoft.AspNetCore.Http.ValidationsGenerator into a new directory under src/Validation/gen.
  5. Move the tests from https://github.com/dotnet/aspnetcore/tree/main/src/Http/Http.Extensions/test/ValidationsGenerator into a new directory under src/Validation/test/Micorosft.Extensions.Validation.ValidationsGenerator tests.
  6. Update eng/ProjectReferences.props to reference the newly created project.
  7. Create a new src/Validation/Validations.slnf file for the project.
@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 labels May 22, 2025
@Copilot Copilot AI linked a pull request May 22, 2025 that will close this issue
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 a pull request may close this issue.

1 participant