btw. when i use direct property validation like this:
ValidationRules.ensure(this.institution.user.password).required().rules;
validation “work” and i got error but when field is not empty i still got error ?
it’s weired
if you are using babel as transpiler, it means you are writing code in ESNext not in TypeScript, so res: ItalianRestaurant should not be a valid syntax since JS do not allow us to explicitly tell the data type.
It was long fight but at least i find out, if I need to validate property of nested class i nedd to use special syntax :
for this.institution.user.email
i nedd to use validation like that