Declined
Last Updated: 08 Nov 2023 13:44 by ADMIN
Roberto
Created on: 08 Nov 2023 13:05
Category: UI for Blazor
Type: Feature Request
1
Implement FluentValidation natively rather then having to rely on a third party library

If you want to validate a form using FluentValidation right now you must rely on a third party validator like the ones suggested in the FluentValidation documentation.

We have noticed most of these libraries have not been updated in a long while despite issues being opened and pull requests pending:

  • Blazored.FluentValidation - Last release: Dec 31, 2022
  • Blazor-Validation - Last release: Jun 30, 2023
  • Accelist.FluentValidation.Blazor - Last release: Nov 17, 2020
  • vNext.BlazorComponents.FluentValidation - Last release: Sep 9, 2022

Also, we noticed that these libraries don't fully implement all the features that FluentValidation has to offer.

Ex: We wanted to use the Rulesets to validate fields partially when the input has changed (like maximum lenght or regexes) and then validate the more complex rules like "unique in DB" after the "submit" button of the form has been pressed but it seemed like it would run all validations ignoring the rulesets.

Other components libraries have already implemented FluentValidation natively, could Telerik consider implementing this aswell so we can stop relying on third party libraries and have a better implementation of the FluentValidation?

1 comment
ADMIN
Svetoslav Dimitrov
Posted on: 08 Nov 2023 13:44

Hello Roberto,

The Telerik UI for Blazor suite implements UI components that allow you to add feature-rich components while hiding the complexity of implementing and supporting complex features. Our components reside in the UI layer of the application and are not responsible for data manipulation such as performing requests to the data source. We also, do not implement custom validation tools but provide support for existing such as the DataAnnotationValidator by Microsoft and all other third-party libraries whose validators rely on the EditContext (such as FluentValidation). 

We cannot take responsibility for the level of maintenance of third-party libraries and implement our own due to the fact that they are maintained properly or not. 

With that in mind, I am marking this feature request as "Declined".

Regards,
Svetoslav Dimitrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!