Properties
Private constraintMetadatas
constraintMetadatas: any
Private validationMetadatas
validationMetadatas: any
Accessors
hasValidationMetaData
- get hasValidationMetaData(): boolean
-
Returns boolean
Methods
addConstraintMetadata
- addConstraintMetadata(metadata: ConstraintMetadata): void
-
Parameters
-
metadata: ConstraintMetadata
Returns void
addValidationMetadata
- addValidationMetadata(metadata: ValidationMetadata): void
-
Parameters
-
metadata: ValidationMetadata
Returns void
addValidationSchema
-
Parameters
Returns void
getTargetValidationMetadatas
- getTargetValidationMetadatas(targetConstructor: Function, targetSchema: string, always: boolean, strictGroups: boolean, groups?: string[]): ValidationMetadata[]
-
Parameters
-
targetConstructor: Function
-
targetSchema: string
-
always: boolean
-
strictGroups: boolean
-
Optional groups: string[]
Returns ValidationMetadata[]
getTargetValidatorConstraints
- getTargetValidatorConstraints(target: Function): ConstraintMetadata[]
-
Parameters
Returns ConstraintMetadata[]
groupByPropertyName
- groupByPropertyName(metadata: ValidationMetadata[]): {}
-
Parameters
-
metadata: ValidationMetadata[]
Returns {}
-
[propertyName: string]: ValidationMetadata[]
Storage all metadatas.