Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SubModelTypeValidator

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.

Hierarchy

  • SubModelTypeValidator

Index

Constructors

Methods

Constructors

constructor

Methods

getErrorMessage

  • getErrorMessage(propName: string): string

validate

  • validate(val: any): boolean

Generated using TypeDoc