You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.SAMPLE_VALIDATION_ERROR = void 0;
|
|
exports.SAMPLE_VALIDATION_ERROR = {
|
|
_message: 'User validation failed',
|
|
errors: {
|
|
email: {
|
|
$isValidatorError: true,
|
|
kind: 'required',
|
|
message: 'Path `email` is required.',
|
|
name: 'ValidatorError',
|
|
path: 'email',
|
|
properties: {
|
|
message: 'Path `email` is required.',
|
|
path: 'email',
|
|
type: 'required',
|
|
value: '',
|
|
},
|
|
value: '',
|
|
},
|
|
passwordHash: {
|
|
$isValidatorError: true,
|
|
kind: 'required',
|
|
message: 'Path `passwordHash` is required.',
|
|
name: 'ValidatorError',
|
|
path: 'passwordHash',
|
|
properties: {
|
|
message: 'Path `passwordHash` is required.',
|
|
path: 'passwordHash',
|
|
type: 'required',
|
|
value: '',
|
|
},
|
|
value: '',
|
|
},
|
|
},
|
|
message: 'User validation failed: email: Path `email` is required., passwordHash: Path `passwordHash` is required.',
|
|
name: 'ValidationError',
|
|
};
|
|
//# sourceMappingURL=mongoose-validation-error.js.map
|