Skip to content

Conversation

@guardrex
Copy link
Collaborator

@guardrex guardrex commented Oct 22, 2025

Fixes #36240

Ready! 🎉 ... I derived this from the PU issue discussion with a bit of code help from Copilot.


Internal previews

📄 File 🔗 Preview link
aspnetcore/blazor/forms/validation.md aspnetcore/blazor/forms/validation

@guardrex guardrex requested a review from Copilot October 22, 2025 11:31
Copy link
Contributor

Copilot AI left a comment

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 adds documentation for validating forms with models defined in different assemblies, a new feature in ASP.NET Core 10.0. The changes guide users on setting up validation for models in libraries or .Client projects of Blazor Web Apps.

  • Adds a new section explaining how to validate models from external assemblies
  • Provides a code example showing service collection extension setup
  • Includes a reference to the detailed documentation in the release notes

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
aspnetcore/release-notes/aspnetcore-10/includes/blazor.md Adds a brief section with cross-reference to the detailed validation documentation
aspnetcore/blazor/forms/validation.md Adds comprehensive documentation with explanation, requirements, and code example for cross-assembly validation

@guardrex guardrex requested a review from oroztocil October 22, 2025 11:35
@guardrex guardrex self-assigned this Oct 22, 2025
Copy link
Member

@oroztocil oroztocil left a comment

Choose a reason for hiding this comment

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

Looks great!

Clarified instructions for adding validation in the server project's Program file.
@guardrex
Copy link
Collaborator Author

I had one final little NIT there. I didn't remind devs that they need the namespace, so I added a remark and a line of code on that.

Ok ... we're good here. I'll merge this right after it finishes building.

@guardrex guardrex merged commit c787d87 into main Oct 22, 2025
3 checks passed
@guardrex guardrex deleted the guardrex-patch-2 branch October 22, 2025 12:04
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.

Document using validation models from library in .NET 10

3 participants