Skip to content

each for custom validations #260

@otbe

Description

@otbe

Hi,

If I get the code correct each is not supported for custom validation classes, isnt it?
For example:

class Foo {
   @Validate(MyValidationConstraint, { each: true })
   bars: Array<Bar>
}

If I call validate on an instance of Foo my validate function gets an array passed.

Is this intended? I wonder because the type signatue of @Validate allows me to set each to true.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions