Open Closed

Abp Suite - Validation (Required for ex) not respected in scaffolded domainManager #3647


User avatar
0
dlapointe created
  • ABP Framework version: v6.0.0-rc.3
  • UI type: MVC
  • DB provider: EF Core MySql
  • Tiered (MVC) or Identity Server Separated (Angular): no (OpenIdDict)

Hi all,

Ive been generating my domain using the Suite but unfortunately it seems like that validation are not fully respected. Here is my 'activity' aggregate which have a Title. It is Required, MinLength of 3 and MaxLength of 64.

In the constructor, those rules are respected (even tough the ctor was public, wouldnt it be set to internal following ABP best practice when managed via a Domain Service/Manager???). But in the ActivityManager.Update, there aint no validation at all so i cant update an Activity and pass an empty Title.

CTOR:

Manager:

Thank you

Addition 1: It also does not mark the required properties (or any validations) as internal set so developer can easily set Title = string.empty in the AppService.


1 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello, thanks for the report.

    I'm creating an internal issue on the topic.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38