Open Closed

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

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.



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)
  • 0
    berkansasmaz created
    Support Team

    Hello, thanks for the report.

    I'm creating an internal issue on the topic.