Validator that checks the type of a sub-model (a related model) to be either an array or an object, depending on the cardinality of the relationship.
Initialize the validator with the cardinality of the parent-to-child cardinality.
Describe why the value is invalid.
Checks that a value is an array or an object, depending on the cardinality.
Generated using TypeDoc
Validator that checks the type of a sub-model (a related model) to be either an array or an object, depending on the cardinality of the relationship.