{"id":15630979,"url":"https://github.com/mrpmorris/blazor-validation","last_synced_at":"2025-05-15T07:04:39.308Z","repository":{"id":35027369,"uuid":"198083673","full_name":"mrpmorris/blazor-validation","owner":"mrpmorris","description":"Validation extensions for Microsoft Blazor / FluentValidation","archived":false,"fork":false,"pushed_at":"2024-12-19T11:31:38.000Z","size":340,"stargazers_count":221,"open_issues_count":4,"forks_count":27,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-08T18:57:29.998Z","etag":null,"topics":["blazor","blazor-fluentvalidation","blazor-validation","fluent-validation","fluentvalidation","microsoft-aspdotnet-blazor","validation"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrpmorris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-21T17:07:53.000Z","updated_at":"2025-05-04T04:08:24.000Z","dependencies_parsed_at":"2024-09-13T02:04:12.315Z","dependency_job_id":"23563abe-0516-46a0-a62e-8e2892097ae3","html_url":"https://github.com/mrpmorris/blazor-validation","commit_stats":{"total_commits":62,"total_committers":4,"mean_commits":15.5,"dds":0.08064516129032262,"last_synced_commit":"75a963ce623bf1f70c1b1375fb5d9a9b1500c67c"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrpmorris%2Fblazor-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrpmorris%2Fblazor-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrpmorris%2Fblazor-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrpmorris%2Fblazor-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrpmorris","download_url":"https://codeload.github.com/mrpmorris/blazor-validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292039,"owners_count":22046426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","blazor-fluentvalidation","blazor-validation","fluent-validation","fluentvalidation","microsoft-aspdotnet-blazor","validation"],"created_at":"2024-10-03T10:37:57.593Z","updated_at":"2025-05-15T07:04:34.298Z","avatar_url":"https://github.com/mrpmorris.png","language":"C#","readme":"# Blazor-Validation\n\n\nBlazor-Validation is a validation agnostic library for validating forms in Blazor- [Microsoft aspdotnet Blazor project]. \n\n[![Join the chat at https://gitter.im/mrpmorris/blazor-validation](https://badges.gitter.im/mrpmorris/blazor-validation.svg)](https://gitter.im/mrpmorris/blazor-validation?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) \n\n## Installation\nYou can download the latest release / pre-release NuGet packages from the official NuGet pages:\n- [Blazor-Validation] [![NuGet version (Morris.Blazor.Validation)](https://img.shields.io/nuget/v/Morris.Blazor.Validation.svg?style=flat-square)](https://www.nuget.org/packages/Morris.Blazor.Validation/)\n- [Blazor-FluentValidation] [![NuGet version (Morris.Blazor.FluentValidation)](https://img.shields.io/nuget/v/Morris.Blazor.FluentValidation.svg?style=flat-square)](https://www.nuget.org/packages/Morris.Blazor.FluentValidation/) \n\n## Getting started\n 1. Add a reference to Morris.Blazor.Validation\n 2. Inside the `\u003cEditForm\u003e` in your razor files, add `\u003cMorris.Blazor.Validation.Validate/\u003e`\n 3. In startup.cs add `using Morris.Blazor.Validation` and then add the relevant validation in the `ConfigureServices` method.\n\n-  `services.AddFormValidation(config =\u003e config.AddDataAnnotationsValidation());`\n-  `services.AddFormValidation(config =\u003e config.AddFluentValidation(typeof(SomeValidator).Assembly));`\n\nIt is possible to add as many validation providers as you wish\n```c#\nservices.AddFormValidation(config =\u003e \n  config\n    .AddDataAnnotationsValidation()\n    .AddFluentValidation(typeof(SomeValidator).Assembly)\n);\n```\n\nAlso you can have the `FluentValidation` extension scan multiple assemblies\n\n```c#\nservices.AddFormValidation(config =\u003e \n  config\n    .AddFluentValidation(\n      typeof(SomeValidator).Assembly,\n      typeof(ClassInAnotherDll).Assembly,\n      andAnotherAssembly,\n      andYetAnotherAssembly));\n```\n\nThe standard Blazor components `\u003cValidationSummary\u003e` and `\u003cValidationMessage\u003e` will now work with your selected validation options.\n\n### Sample projects\nMore sample projects will be added as the framework develops.\n - [Data Annotations Sample]- Shows how to use DataAnnotations to validate.\n - [FluentValidation Sample]- Shows how to use the [FluentValidation.com] library to validate.\n\n## What's new\n\n### New in 3.1.1\n- Support for .net 8 and 9 only\n\n### New in 3.1.0\n- Support for .Net 8\n\n### New in 3.0.0 \n- Add OnTransformModel delegate to allow the model to be transformed before validation (This is useful when using endpoint-centric APIs)\n- Major change because it changes the signature of the public IValidationProvider interface.\n\n### New in 2.0.0\n- Add net7.0 target framework.\n\n### New in 1.8.0\n- Use `Services.TryAddScoped` instead of `Services.AddScoped` for validators, in case \n  the consuming app has already registered validators with a different lifetime.\n\n### New in 1.7.0\n- Upgrade to FluentValidation V10\n- Prevent ValidateObjectTree from visiting struct properties [Bug #33](https://github.com/mrpmorris/blazor-validation/issues/33)\n\n### New in 1.6.0\n- Suport FluentValidation's RuleForEach and ChildRules\n\n### New in 1.5.0\n- Support .NET 5.0\n\n### New in 1.4.0\n- Upgrade to FluentValidation 9\n\n### New in 1.3.1\n- Add new EditContext.ValidateProperties for validating sub-sets of an object\n\n### New in 1.2.0\n- Return `bool` from EditContext.ValidateProperty\n\n### New in 1.0.0\n- Updated FluentValidationSample\n- First major release\n\n### New in 0.10\n- Remove old EditContextExtensions file\n- Ensure strings are not enumerated when traversing a whole object tree to validate\n\n### New in 0.9\n- Upgraded to .NETCore 3\n\n### New in 0.8\n- Upgraded to Blazor RC1\n\n### New in 0.7\n- Added an `EditContext.ValidateObjectTree`\n- Upgraded to Blazor Preview 9\n\n### New in 0.6.1\n- Fixed bug in FluentValidation that prevented objects with complex property types from being validated\n\n### New in 0.6.0\n- Upgraded to Blazor Preview 8\n\n### New in 0.5.0\n- Upgraded to Blazor Preview 7\n\n### New in 0.4.0\n- Initial public release\n\n   [Microsoft aspdotnet blazor project]: \u003chttps://github.com/aspnet/Blazor\u003e\n   [Blazor-Validation]: \u003chttps://www.nuget.org/packages/Morris.Blazor.Validation/\u003e\n   [Blazor-FluentValidation]: \u003chttps://www.nuget.org/packages/Morris.Blazor.FluentValidation/\u003e\n   [Data Annotations Sample]: \u003chttps://github.com/mrpmorris/blazor-validation/tree/master/Source/Samples/01-DataAnnotationsValidation//\u003e\n   [FluentValidation Sample]: \u003chttps://github.com/mrpmorris/blazor-validation/tree/master/Source/Samples/02-FluentValidation/\u003e\n   [Blazored FluentValidation]: \u003chttps://github.com/Blazored/FluentValidation\u003e\n","funding_links":[],"categories":["others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrpmorris%2Fblazor-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrpmorris%2Fblazor-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrpmorris%2Fblazor-validation/lists"}