File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change
1
+ import { ValidationArguments } from "../validation/ValidationArguments" ;
2
+
1
3
/**
2
4
* Options used to pass to validation decorators.
3
5
*/
@@ -10,13 +12,9 @@ export interface ValidationOptions {
10
12
11
13
/**
12
14
* Error message used to be used on validation fail.
13
- * You can use "$value" to use value that was failed by validation.
14
- * You can use "$constraint1" and "$constraint2" keys in the message string,
15
- * and they will be replaced with constraint values if they exist.
16
15
* Message can be either string, either a function that returns a string.
17
- * Second option allows to use values and custom messages depend of them.
18
16
*/
19
- message ?: string | ( ( value ?: any , constraint1 ?: any , constraint2 ?: any ) => string ) ;
17
+ message ?: string | ( ( validationArguments : ValidationArguments ) => string ) ;
20
18
21
19
/**
22
20
* Validation groups used for this validation.
@@ -32,4 +30,4 @@ export interface ValidationOptions {
32
30
* A transient set of data passed through to the validation result for response mapping
33
31
*/
34
32
context ?: any ;
35
- }
33
+ }
You can’t perform that action at this time.
0 commit comments