Open Closed

FluentValidations do not work with Conventional Controllers #7265


User avatar
0
ahmed.amer created
  • ABP Framework version: v8.1.3
  • UI Type: N/A
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: I am currently trying to use the Volo.Abp.FluentValidation package following what is outlined in the documentation here.

Currently it seems that anything I define in my validator classes is not being picked up.

I have create a Github Repo to showcase this issue in action.

I posted about this issue already in the ABP Github issues here

The response received is not acceptable as sacrificing the use of conventional controllers would not be possible. Is there a different solution to this issue or can this be added into the ABP framework as an opt-in flag to allow for FluentValidations anyways.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can consider this answer.

    https://github.com/abpframework/abp/issues/19909#issuecomment-2126416976 The reason ABP doesn't do this is to prevent duplicate verifications.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 17, 2025, 10:38