nestjs-swagger-validator 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts
CHANGED
|
@@ -30,10 +30,23 @@ export type NumberOptions = BaseOptions & {
|
|
|
30
30
|
type: 'number';
|
|
31
31
|
isPositive?: MessageOption;
|
|
32
32
|
isInt?: MessageOption;
|
|
33
|
+
min?: NumberMessageOption;
|
|
34
|
+
max?: NumberMessageOption;
|
|
33
35
|
};
|
|
34
36
|
export type BooleanOptions = BaseOptions & {
|
|
35
37
|
type: 'boolean';
|
|
36
38
|
};
|
|
39
|
+
export type DateOptions = BaseOptions & {
|
|
40
|
+
type: 'date';
|
|
41
|
+
minDate?: Date | {
|
|
42
|
+
value: Date;
|
|
43
|
+
message?: string;
|
|
44
|
+
};
|
|
45
|
+
maxDate?: Date | {
|
|
46
|
+
value: Date;
|
|
47
|
+
message?: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
37
50
|
export type ObjectOptions = BaseOptions & {
|
|
38
51
|
type: 'object';
|
|
39
52
|
};
|
|
@@ -50,5 +63,5 @@ export type NoTypeOptions = BaseOptions & {
|
|
|
50
63
|
type?: undefined;
|
|
51
64
|
enum?: undefined;
|
|
52
65
|
};
|
|
53
|
-
export type ApiPropertyOptions = StringOptions | NumberOptions | BooleanOptions | ObjectOptions | EnumOptions | ClassOptions | NoTypeOptions;
|
|
66
|
+
export type ApiPropertyOptions = StringOptions | NumberOptions | BooleanOptions | DateOptions | ObjectOptions | EnumOptions | ClassOptions | NoTypeOptions;
|
|
54
67
|
export {};
|
package/package.json
CHANGED