summaryrefslogtreecommitdiff
path: root/src/node_modules/class-validator/esm2015/validation/ValidatorOptions.js.map
blob: a68566b890f9be1177b91d87aa028c1bdf3b6819 (plain)
1
{"version":3,"sources":["../../src/validation/ValidatorOptions.ts"],"names":[],"mappings":"","file":"ValidatorOptions.js","sourcesContent":["/**\n * Options passed to validator during validation.\n */\nexport interface ValidatorOptions {\n    /**\n     * If set to true then validator will skip validation of all properties that are undefined in the validating object.\n     */\n    skipUndefinedProperties?: boolean;\n\n    /**\n     * If set to true then validator will skip validation of all properties that are null in the validating object.\n     */\n    skipNullProperties?: boolean;\n\n    /**\n     * If set to true then validator will skip validation of all properties that are null or undefined in the validating object.\n     */\n    skipMissingProperties?: boolean;\n\n    /**\n     * If set to true validator will strip validated object of any properties that do not have any decorators.\n     *\n     * Tip: if no other decorator is suitable for your property use @Allow decorator.\n     */\n    whitelist?: boolean;\n\n    /**\n     * If set to true, instead of stripping non-whitelisted properties validator will throw an error\n     */\n    forbidNonWhitelisted?: boolean;\n\n    /**\n     * Groups to be used during validation of the object.\n     */\n    groups?: string[];\n\n    /**\n     * If set to true, the validation will not use default messages.\n     * Error message always will be undefined if its not explicitly set.\n     */\n    dismissDefaultMessages?: boolean;\n\n    /**\n     * ValidationError special options.\n     */\n    validationError?: {\n\n        /**\n         * Indicates if target should be exposed in ValidationError.\n         */\n        target?: boolean;\n\n        /**\n         * Indicates if validated value should be exposed in ValidationError.\n         */\n        value?: boolean;\n\n    };\n\n    /**\n     * Settings true will cause fail validation of unknown objects.\n     */\n    forbidUnknownValues?: boolean;\n\n}\n"],"sourceRoot":".."}