in src/validators/core/typeValidator.ts [60:72]
public validate(input: any, path?: string, field?: string): IValidationError[] {
if (input == null) {
return null;
}
if (!(typeof input === this.expectedType)) {
return [{
message: field + " must be a " + this.expectedType,
path: (path ? path + "." : "") + field,
keyword: "type"
}];
}
return null;
}