EntityValidator
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
strict: boolean
Returns EntityValidator
Properties
KNOWN_TYPES
Methods
validate
Parameters
entity: T
payload: any
meta: EntityMetadata<T>
Returns void
validateEmptyWhere
Parameters
where: FilterQuery<T>
Returns void
validateParams
Parameters
params: any
type: string = 'search condition'
optionalfield: string
Returns void
validatePrimaryKey
Parameters
entity: EntityData<T>
meta: EntityMetadata<T>
Returns void
validateProperty
Parameters
prop: EntityProperty<any, any>
givenValue: any
entity: T
Returns any
validateRequired
Parameters
entity: T
Returns void