@fluojs/validation 1.0.4 → 1.0.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAEZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EAErC,KAAK,0BAA0B,EAChC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAgE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG/H,KAAK,gBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;AAClF,KAAK,gBAAgB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;AAElH,KAAK,kBAAkB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAyGtE;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,gBAAgB,CAE/E;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,gBAAgB,CAExG;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,gBAAgB,CAEhF;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GACrB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EACxE,UAAU,0BAA0B,qBACgD,CAAC;AAE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C,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,EAAE,OAAO,CAAC,EAAE,0BAA0B,GAAG,gBAAgB,CAEhH;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,gBAAgB,CAEjF;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,wFAAgH,CAAC;AAC3I;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,wFAAmH,CAAC;AACjJ;;;;;GAKG;AACH,eAAO,MAAM,aAAa,4DAAsF,CAAC;AACjH;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,2EAAwH,CAAC;AAClJ;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,2EAAwH,CAAC;AAElJ;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,iBAAiB,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,0BAA0B,EAC9E,OAAO,CAAC,EAAE,0BAA0B,GACnC,gBAAgB,CAKlB;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,gCAAgC,GAAG,gBAAgB,CASrH;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,0BAA0B,GAAG,gBAAgB,CAUlH"}
@@ -1,83 +1,17 @@
1
- import { ensureMetadataSymbol } from '@fluojs/core/internal';
1
+ import { createArrayValidationDecorator, createFlagValidationDecorator, createValidationDecorator, createValidationOptionsWithConfigDecorator, createValidatorJsDecorator } from './internal/decorator-factories.js';
2
+ import { appendStandardClassValidationRule } from './internal/decorator-metadata.js';
2
3
  import { createClassValidatorFromStandardSchema, isStandardSchemaLike } from './standard-schema.js';
3
- const standardDtoValidationMetadataKey = Symbol.for('fluo.standard.dto-validation');
4
- const standardClassValidationMetadataKey = Symbol.for('fluo.standard.class-validation');
5
- ensureMetadataSymbol();
6
- function getStandardMetadataBag(metadata) {
7
- if (metadata === null || metadata === undefined) {
8
- throw new Error('Decorator metadata is not available. Ensure your environment supports TC39 decorator metadata (Stage 3).');
9
- }
10
- return metadata;
11
- }
12
- function getStandardDtoValidationMap(metadata) {
13
- const bag = getStandardMetadataBag(metadata);
14
- const current = bag[standardDtoValidationMetadataKey];
15
- if (current) {
16
- return current;
17
- }
18
- const created = new Map();
19
- bag[standardDtoValidationMetadataKey] = created;
20
- return created;
21
- }
22
- function getStandardClassValidationList(metadata) {
23
- const bag = getStandardMetadataBag(metadata);
24
- const current = bag[standardClassValidationMetadataKey];
25
- if (current) {
26
- return current;
27
- }
28
- const created = [];
29
- bag[standardClassValidationMetadataKey] = created;
30
- return created;
31
- }
32
- function appendStandardDtoValidationRule(metadata, propertyKey, rule) {
33
- const map = getStandardDtoValidationMap(metadata);
34
- map.set(propertyKey, [...(map.get(propertyKey) ?? []), rule]);
35
- }
36
- function appendStandardClassValidationRule(metadata, rule) {
37
- getStandardClassValidationList(metadata).push(rule);
38
- }
39
4
  function resolveClassValidator(validate) {
40
5
  if (!isStandardSchemaLike(validate)) {
41
6
  return validate;
42
7
  }
43
8
  return createClassValidatorFromStandardSchema(validate);
44
9
  }
45
- function createValidationDecorator(ruleFactory) {
46
- const decorator = (_value, context) => {
47
- appendStandardDtoValidationRule(context.metadata, context.name, ruleFactory());
48
- };
49
- return decorator;
50
- }
51
- function createValidationOptionsWithConfigDecorator(ruleFactory) {
52
- return (value, options) => {
53
- return createValidationDecorator(() => ruleFactory(value, options));
54
- };
55
- }
56
- function createFlagValidationDecorator(ruleFactory) {
57
- return options => {
58
- return createValidationDecorator(() => ruleFactory(options));
59
- };
60
- }
61
- function createArrayValidationDecorator(ruleFactory) {
62
- return (values, options) => {
63
- return createValidationDecorator(() => ruleFactory(values, options));
64
- };
65
- }
66
- function createValidatorJsDecorator(validator) {
67
- return (args, options) => {
68
- return createValidationDecorator(() => ({
69
- args,
70
- kind: 'validatorjs',
71
- validator,
72
- ...options
73
- }));
74
- };
75
- }
76
10
 
77
11
  /**
78
12
  * Validates that the decorated field is a string value.
79
13
  *
80
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
14
+ * @param options Optional validation behavior (`message`, `code`, `each`).
81
15
  * @returns A field decorator that registers a string validation rule.
82
16
  */
83
17
  export function IsString(options) {
@@ -90,7 +24,7 @@ export function IsString(options) {
90
24
  /**
91
25
  * Validates that the decorated field is a number value.
92
26
  *
93
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
27
+ * @param options Optional validation behavior (`message`, `code`, `each`, `allowNaN`).
94
28
  * @returns A field decorator that registers a number validation rule.
95
29
  */
96
30
  export function IsNumber(options) {
@@ -103,7 +37,7 @@ export function IsNumber(options) {
103
37
  /**
104
38
  * Validates that the decorated field is a boolean value.
105
39
  *
106
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
40
+ * @param options Optional validation behavior (`message`, `code`, `each`).
107
41
  * @returns A field decorator that registers a boolean validation rule.
108
42
  */
109
43
  export function IsBoolean(options) {
@@ -117,7 +51,7 @@ export function IsBoolean(options) {
117
51
  * Applies subsequent validators only when the condition returns `true`.
118
52
  *
119
53
  * @param validateIf Predicate that decides whether subsequent validators should run.
120
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
54
+ * @param options Optional validation behavior (`message`, `code`, `each`).
121
55
  * @returns A field decorator that adds conditional validation execution.
122
56
  */
123
57
  export const ValidateIf = (validateIf, options) => createValidationDecorator(() => ({
@@ -129,7 +63,7 @@ export const ValidateIf = (validateIf, options) => createValidationDecorator(()
129
63
  /**
130
64
  * Validates that the decorated field is neither `null` nor `undefined`.
131
65
  *
132
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
66
+ * @param options Optional validation behavior (`message`, `code`, `each`).
133
67
  * @returns A field decorator that registers a required-value rule.
134
68
  */
135
69
  export const IsDefined = createFlagValidationDecorator(options => ({
@@ -139,7 +73,7 @@ export const IsDefined = createFlagValidationDecorator(options => ({
139
73
  /**
140
74
  * Skips subsequent validators when the decorated field is `null` or `undefined`.
141
75
  *
142
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
76
+ * @param options Optional validation behavior (`message`, `code`, `each`).
143
77
  * @returns A field decorator that registers optional-value semantics.
144
78
  */
145
79
  export const IsOptional = createFlagValidationDecorator(options => ({
@@ -150,7 +84,7 @@ export const IsOptional = createFlagValidationDecorator(options => ({
150
84
  * Validates that the decorated field strictly equals the expected value.
151
85
  *
152
86
  * @param value Expected value to compare against the field value.
153
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
87
+ * @param options Optional validation behavior (`message`, `code`, `each`).
154
88
  * @returns A field decorator that registers an equality rule.
155
89
  */
156
90
  export const Equals = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -162,7 +96,7 @@ export const Equals = createValidationOptionsWithConfigDecorator((value, options
162
96
  * Validates that the decorated field does not strictly equal the forbidden value.
163
97
  *
164
98
  * @param value Forbidden value to compare against the field value.
165
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
99
+ * @param options Optional validation behavior (`message`, `code`, `each`).
166
100
  * @returns A field decorator that registers an inequality rule.
167
101
  */
168
102
  export const NotEquals = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -173,7 +107,7 @@ export const NotEquals = createValidationOptionsWithConfigDecorator((value, opti
173
107
  /**
174
108
  * Validates that the decorated field is empty.
175
109
  *
176
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
110
+ * @param options Optional validation behavior (`message`, `code`, `each`).
177
111
  * @returns A field decorator that registers an empty-value rule.
178
112
  */
179
113
  export const IsEmpty = createFlagValidationDecorator(options => ({
@@ -183,7 +117,7 @@ export const IsEmpty = createFlagValidationDecorator(options => ({
183
117
  /**
184
118
  * Validates that the decorated field is not empty.
185
119
  *
186
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
120
+ * @param options Optional validation behavior (`message`, `code`, `each`).
187
121
  * @returns A field decorator that registers a non-empty-value rule.
188
122
  */
189
123
  export const IsNotEmpty = createFlagValidationDecorator(options => ({
@@ -194,7 +128,7 @@ export const IsNotEmpty = createFlagValidationDecorator(options => ({
194
128
  * Validates that the decorated field is included in the accepted values.
195
129
  *
196
130
  * @param values Accepted values for the field.
197
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
131
+ * @param options Optional validation behavior (`message`, `code`, `each`).
198
132
  * @returns A field decorator that registers an inclusion rule.
199
133
  */
200
134
  export const IsIn = createArrayValidationDecorator((values, options) => ({
@@ -206,7 +140,7 @@ export const IsIn = createArrayValidationDecorator((values, options) => ({
206
140
  * Validates that the decorated field is not included in the rejected values.
207
141
  *
208
142
  * @param values Rejected values for the field.
209
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
143
+ * @param options Optional validation behavior (`message`, `code`, `each`).
210
144
  * @returns A field decorator that registers an exclusion rule.
211
145
  */
212
146
  export const IsNotIn = createArrayValidationDecorator((values, options) => ({
@@ -217,7 +151,7 @@ export const IsNotIn = createArrayValidationDecorator((values, options) => ({
217
151
  /**
218
152
  * Validates that the decorated field is a `Date` value.
219
153
  *
220
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
154
+ * @param options Optional validation behavior (`message`, `code`, `each`).
221
155
  * @returns A field decorator that registers a date validation rule.
222
156
  */
223
157
  export const IsDate = createFlagValidationDecorator(options => ({
@@ -227,7 +161,7 @@ export const IsDate = createFlagValidationDecorator(options => ({
227
161
  /**
228
162
  * Validates that the decorated field is an array.
229
163
  *
230
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
164
+ * @param options Optional validation behavior (`message`, `code`, `each`).
231
165
  * @returns A field decorator that registers an array validation rule.
232
166
  */
233
167
  export const IsArray = createFlagValidationDecorator(options => ({
@@ -237,7 +171,7 @@ export const IsArray = createFlagValidationDecorator(options => ({
237
171
  /**
238
172
  * Validates that the decorated field is an object value.
239
173
  *
240
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
174
+ * @param options Optional validation behavior (`message`, `code`, `each`).
241
175
  * @returns A field decorator that registers an object validation rule.
242
176
  */
243
177
  export const IsObject = createFlagValidationDecorator(options => ({
@@ -247,7 +181,7 @@ export const IsObject = createFlagValidationDecorator(options => ({
247
181
  /**
248
182
  * Validates that the decorated field is an integer.
249
183
  *
250
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
184
+ * @param options Optional validation behavior (`message`, `code`, `each`).
251
185
  * @returns A field decorator that registers an integer validation rule.
252
186
  */
253
187
  export const IsInt = createFlagValidationDecorator(options => ({
@@ -257,7 +191,7 @@ export const IsInt = createFlagValidationDecorator(options => ({
257
191
  /**
258
192
  * Validates that the decorated field is a positive number.
259
193
  *
260
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
194
+ * @param options Optional validation behavior (`message`, `code`, `each`).
261
195
  * @returns A field decorator that registers a positive-number rule.
262
196
  */
263
197
  export const IsPositive = createFlagValidationDecorator(options => ({
@@ -267,7 +201,7 @@ export const IsPositive = createFlagValidationDecorator(options => ({
267
201
  /**
268
202
  * Validates that the decorated field is a negative number.
269
203
  *
270
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
204
+ * @param options Optional validation behavior (`message`, `code`, `each`).
271
205
  * @returns A field decorator that registers a negative-number rule.
272
206
  */
273
207
  export const IsNegative = createFlagValidationDecorator(options => ({
@@ -279,7 +213,7 @@ export const IsNegative = createFlagValidationDecorator(options => ({
279
213
  * Validates that the field value is included in the given enum-like set.
280
214
  *
281
215
  * @param values Enum object or literal value list that defines the accepted set.
282
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
216
+ * @param options Optional validation behavior (`message`, `code`, `each`).
283
217
  * @returns A field decorator that registers an enum-membership rule.
284
218
  */
285
219
  export function IsEnum(values, options) {
@@ -295,7 +229,7 @@ export function IsEnum(values, options) {
295
229
  * Validates that the decorated field is divisible by the given divisor.
296
230
  *
297
231
  * @param value Divisor used for the numeric divisibility check.
298
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
232
+ * @param options Optional validation behavior (`message`, `code`, `each`).
299
233
  * @returns A field decorator that registers a divisibility rule.
300
234
  */
301
235
  export const IsDivisibleBy = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -307,7 +241,7 @@ export const IsDivisibleBy = createValidationOptionsWithConfigDecorator((value,
307
241
  * Validates that the decorated field is greater than or equal to the minimum.
308
242
  *
309
243
  * @param value Inclusive minimum allowed numeric value.
310
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
244
+ * @param options Optional validation behavior (`message`, `code`, `each`).
311
245
  * @returns A field decorator that registers a minimum-value rule.
312
246
  */
313
247
  export const Min = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -319,7 +253,7 @@ export const Min = createValidationOptionsWithConfigDecorator((value, options) =
319
253
  * Validates that the decorated field is less than or equal to the maximum.
320
254
  *
321
255
  * @param value Inclusive maximum allowed numeric value.
322
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
256
+ * @param options Optional validation behavior (`message`, `code`, `each`).
323
257
  * @returns A field decorator that registers a maximum-value rule.
324
258
  */
325
259
  export const Max = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -331,7 +265,7 @@ export const Max = createValidationOptionsWithConfigDecorator((value, options) =
331
265
  * Validates that the decorated field is on or after the minimum date.
332
266
  *
333
267
  * @param value Inclusive minimum allowed date.
334
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
268
+ * @param options Optional validation behavior (`message`, `code`, `each`).
335
269
  * @returns A field decorator that registers a minimum-date rule.
336
270
  */
337
271
  export const MinDate = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -343,7 +277,7 @@ export const MinDate = createValidationOptionsWithConfigDecorator((value, option
343
277
  * Validates that the decorated field is on or before the maximum date.
344
278
  *
345
279
  * @param value Inclusive maximum allowed date.
346
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
280
+ * @param options Optional validation behavior (`message`, `code`, `each`).
347
281
  * @returns A field decorator that registers a maximum-date rule.
348
282
  */
349
283
  export const MaxDate = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -355,7 +289,7 @@ export const MaxDate = createValidationOptionsWithConfigDecorator((value, option
355
289
  * Validates that the decorated field contains the required substring.
356
290
  *
357
291
  * @param value Required substring.
358
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
292
+ * @param options Optional validation behavior (`message`, `code`, `each`).
359
293
  * @returns A field decorator that registers a substring-presence rule.
360
294
  */
361
295
  export const Contains = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -367,7 +301,7 @@ export const Contains = createValidationOptionsWithConfigDecorator((value, optio
367
301
  * Validates that the decorated field does not contain the forbidden substring.
368
302
  *
369
303
  * @param value Forbidden substring.
370
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
304
+ * @param options Optional validation behavior (`message`, `code`, `each`).
371
305
  * @returns A field decorator that registers a substring-exclusion rule.
372
306
  */
373
307
  export const NotContains = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -381,7 +315,7 @@ export const NotContains = createValidationOptionsWithConfigDecorator((value, op
381
315
  *
382
316
  * @param min Minimum inclusive length.
383
317
  * @param max Optional maximum inclusive length.
384
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
318
+ * @param options Optional validation behavior (`message`, `code`, `each`).
385
319
  * @returns A field decorator that registers a bounded-length rule.
386
320
  */
387
321
  export function Length(min, max, options) {
@@ -395,9 +329,10 @@ export function Length(min, max, options) {
395
329
 
396
330
  /**
397
331
  * Validates a nested DTO instance using the provided constructor.
332
+ * Arrays, Sets, and Maps are traversed automatically without requiring `each`.
398
333
  *
399
334
  * @param dto DTO constructor (or lazy constructor factory) used for nested validation/materialization.
400
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
335
+ * @param options Optional validation behavior (`message`, `code`, `each`); collection traversal is automatic.
401
336
  * @returns A field decorator that registers recursive nested DTO validation.
402
337
  */
403
338
  export function ValidateNested(dto, options) {
@@ -412,7 +347,7 @@ export function ValidateNested(dto, options) {
412
347
  * Validates that the decorated field has at least the given length.
413
348
  *
414
349
  * @param value Inclusive minimum string length.
415
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
350
+ * @param options Optional validation behavior (`message`, `code`, `each`).
416
351
  * @returns A field decorator that registers a minimum-length rule.
417
352
  */
418
353
  export const MinLength = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -424,7 +359,7 @@ export const MinLength = createValidationOptionsWithConfigDecorator((value, opti
424
359
  * Validates that the decorated field has at most the given length.
425
360
  *
426
361
  * @param value Inclusive maximum string length.
427
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
362
+ * @param options Optional validation behavior (`message`, `code`, `each`).
428
363
  * @returns A field decorator that registers a maximum-length rule.
429
364
  */
430
365
  export const MaxLength = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -462,196 +397,196 @@ export function Matches(pattern, modifiersOrOptions, options) {
462
397
  /**
463
398
  * Validates that the decorated field contains only alphabetic characters.
464
399
  *
465
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
400
+ * @param options Optional validation behavior (`message`, `code`, `each`).
466
401
  * @returns A field decorator that registers an alphabetic string rule.
467
402
  */
468
403
  export const IsAlpha = options => createValidatorJsDecorator('alpha')(undefined, options);
469
404
  /**
470
405
  * Validates that the decorated field contains only alphanumeric characters.
471
406
  *
472
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
407
+ * @param options Optional validation behavior (`message`, `code`, `each`).
473
408
  * @returns A field decorator that registers an alphanumeric string rule.
474
409
  */
475
410
  export const IsAlphanumeric = options => createValidatorJsDecorator('alphanumeric')(undefined, options);
476
411
  /**
477
412
  * Validates that the decorated field contains only ASCII characters.
478
413
  *
479
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
414
+ * @param options Optional validation behavior (`message`, `code`, `each`).
480
415
  * @returns A field decorator that registers an ASCII string rule.
481
416
  */
482
417
  export const IsAscii = options => createValidatorJsDecorator('ascii')(undefined, options);
483
418
  /**
484
419
  * Validates that the decorated field is a Base64 string.
485
420
  *
486
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
421
+ * @param options Optional validation behavior (`message`, `code`, `each`).
487
422
  * @returns A field decorator that registers a Base64 string rule.
488
423
  */
489
424
  export const IsBase64 = options => createValidatorJsDecorator('base64')(undefined, options);
490
425
  /**
491
426
  * Validates that the decorated field is a boolean-like string.
492
427
  *
493
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
428
+ * @param options Optional validation behavior (`message`, `code`, `each`).
494
429
  * @returns A field decorator that registers a boolean-string rule.
495
430
  */
496
431
  export const IsBooleanString = options => createValidatorJsDecorator('booleanString')(undefined, options);
497
432
  /**
498
433
  * Validates that the decorated field is a data URI string.
499
434
  *
500
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
435
+ * @param options Optional validation behavior (`message`, `code`, `each`).
501
436
  * @returns A field decorator that registers a data URI rule.
502
437
  */
503
438
  export const IsDataURI = options => createValidatorJsDecorator('dataURI')(undefined, options);
504
439
  /**
505
440
  * Validates that the decorated field is a date string.
506
441
  *
507
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
442
+ * @param options Optional validation behavior (`message`, `code`, `each`).
508
443
  * @returns A field decorator that registers a date-string rule.
509
444
  */
510
445
  export const IsDateString = options => createValidatorJsDecorator('dateString')(undefined, options);
511
446
  /**
512
447
  * Validates that the decorated field is a decimal string.
513
448
  *
514
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
449
+ * @param options Optional validation behavior (`message`, `code`, `each`).
515
450
  * @returns A field decorator that registers a decimal-string rule.
516
451
  */
517
452
  export const IsDecimal = options => createValidatorJsDecorator('decimal')(undefined, options);
518
453
  /**
519
454
  * Validates that the decorated field is an email address.
520
455
  *
521
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
456
+ * @param options Optional validation behavior (`message`, `code`, `each`).
522
457
  * @returns A field decorator that registers an email-address rule.
523
458
  */
524
459
  export const IsEmail = options => createValidatorJsDecorator('email')(undefined, options);
525
460
  /**
526
461
  * Validates that the decorated field is a fully qualified domain name.
527
462
  *
528
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
463
+ * @param options Optional validation behavior (`message`, `code`, `each`).
529
464
  * @returns A field decorator that registers an FQDN rule.
530
465
  */
531
466
  export const IsFQDN = options => createValidatorJsDecorator('fqdn')(undefined, options);
532
467
  /**
533
468
  * Validates that the decorated field is a hexadecimal color string.
534
469
  *
535
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
470
+ * @param options Optional validation behavior (`message`, `code`, `each`).
536
471
  * @returns A field decorator that registers a hex-color rule.
537
472
  */
538
473
  export const IsHexColor = options => createValidatorJsDecorator('hexColor')(undefined, options);
539
474
  /**
540
475
  * Validates that the decorated field is a hexadecimal string.
541
476
  *
542
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
477
+ * @param options Optional validation behavior (`message`, `code`, `each`).
543
478
  * @returns A field decorator that registers a hexadecimal string rule.
544
479
  */
545
480
  export const IsHexadecimal = options => createValidatorJsDecorator('hexadecimal')(undefined, options);
546
481
  /**
547
482
  * Validates that the decorated field is a JSON string.
548
483
  *
549
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
484
+ * @param options Optional validation behavior (`message`, `code`, `each`).
550
485
  * @returns A field decorator that registers a JSON-string rule.
551
486
  */
552
487
  export const IsJSON = options => createValidatorJsDecorator('json')(undefined, options);
553
488
  /**
554
489
  * Validates that the decorated field is a JSON Web Token string.
555
490
  *
556
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
491
+ * @param options Optional validation behavior (`message`, `code`, `each`).
557
492
  * @returns A field decorator that registers a JWT-string rule.
558
493
  */
559
494
  export const IsJWT = options => createValidatorJsDecorator('jwt')(undefined, options);
560
495
  /**
561
496
  * Validates that the decorated field is a locale identifier.
562
497
  *
563
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
498
+ * @param options Optional validation behavior (`message`, `code`, `each`).
564
499
  * @returns A field decorator that registers a locale-string rule.
565
500
  */
566
501
  export const IsLocale = options => createValidatorJsDecorator('locale')(undefined, options);
567
502
  /**
568
503
  * Validates that the decorated field is lowercase.
569
504
  *
570
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
505
+ * @param options Optional validation behavior (`message`, `code`, `each`).
571
506
  * @returns A field decorator that registers a lowercase-string rule.
572
507
  */
573
508
  export const IsLowercase = options => createValidatorJsDecorator('lowercase')(undefined, options);
574
509
  /**
575
510
  * Validates that the decorated field is a magnet URI string.
576
511
  *
577
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
512
+ * @param options Optional validation behavior (`message`, `code`, `each`).
578
513
  * @returns A field decorator that registers a magnet URI rule.
579
514
  */
580
515
  export const IsMagnetURI = options => createValidatorJsDecorator('magnetURI')(undefined, options);
581
516
  /**
582
517
  * Validates that the decorated field is a MIME type string.
583
518
  *
584
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
519
+ * @param options Optional validation behavior (`message`, `code`, `each`).
585
520
  * @returns A field decorator that registers a MIME type rule.
586
521
  */
587
522
  export const IsMimeType = options => createValidatorJsDecorator('mimeType')(undefined, options);
588
523
  /**
589
524
  * Validates that the decorated field is a MongoDB object ID string.
590
525
  *
591
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
526
+ * @param options Optional validation behavior (`message`, `code`, `each`).
592
527
  * @returns A field decorator that registers a MongoDB object ID rule.
593
528
  */
594
529
  export const IsMongoId = options => createValidatorJsDecorator('mongoId')(undefined, options);
595
530
  /**
596
531
  * Validates that the decorated field is a numeric string.
597
532
  *
598
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
533
+ * @param options Optional validation behavior (`message`, `code`, `each`).
599
534
  * @returns A field decorator that registers a numeric-string rule.
600
535
  */
601
536
  export const IsNumberString = options => createValidatorJsDecorator('numberString')(undefined, options);
602
537
  /**
603
538
  * Validates that the decorated field is a network port string.
604
539
  *
605
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
540
+ * @param options Optional validation behavior (`message`, `code`, `each`).
606
541
  * @returns A field decorator that registers a port-string rule.
607
542
  */
608
543
  export const IsPort = options => createValidatorJsDecorator('port')(undefined, options);
609
544
  /**
610
545
  * Validates that the decorated field is an RFC 3339 date-time string.
611
546
  *
612
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
547
+ * @param options Optional validation behavior (`message`, `code`, `each`).
613
548
  * @returns A field decorator that registers an RFC 3339 string rule.
614
549
  */
615
550
  export const IsRFC3339 = options => createValidatorJsDecorator('rfc3339')(undefined, options);
616
551
  /**
617
552
  * Validates that the decorated field is a semantic version string.
618
553
  *
619
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
554
+ * @param options Optional validation behavior (`message`, `code`, `each`).
620
555
  * @returns A field decorator that registers a semantic-version rule.
621
556
  */
622
557
  export const IsSemVer = options => createValidatorJsDecorator('semVer')(undefined, options);
623
558
  /**
624
559
  * Validates that the decorated field is uppercase.
625
560
  *
626
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
561
+ * @param options Optional validation behavior (`message`, `code`, `each`).
627
562
  * @returns A field decorator that registers an uppercase-string rule.
628
563
  */
629
564
  export const IsUppercase = options => createValidatorJsDecorator('uppercase')(undefined, options);
630
565
  /**
631
566
  * Validates that the decorated field is an ISO 8601 date-time string.
632
567
  *
633
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
568
+ * @param options Optional validation behavior (`message`, `code`, `each`).
634
569
  * @returns A field decorator that registers an ISO 8601 string rule.
635
570
  */
636
571
  export const IsISO8601 = options => createValidatorJsDecorator('iso8601')(undefined, options);
637
572
  /**
638
573
  * Validates that the decorated field is a latitude value.
639
574
  *
640
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
575
+ * @param options Optional validation behavior (`message`, `code`, `each`).
641
576
  * @returns A field decorator that registers a latitude rule.
642
577
  */
643
578
  export const IsLatitude = options => createValidatorJsDecorator('latitude')(undefined, options);
644
579
  /**
645
580
  * Validates that the decorated field is a longitude value.
646
581
  *
647
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
582
+ * @param options Optional validation behavior (`message`, `code`, `each`).
648
583
  * @returns A field decorator that registers a longitude rule.
649
584
  */
650
585
  export const IsLongitude = options => createValidatorJsDecorator('longitude')(undefined, options);
651
586
  /**
652
587
  * Validates that the decorated field is a latitude/longitude coordinate string.
653
588
  *
654
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
589
+ * @param options Optional validation behavior (`message`, `code`, `each`).
655
590
  * @returns A field decorator that registers a latitude/longitude rule.
656
591
  */
657
592
  export const IsLatLong = options => createValidatorJsDecorator('latLong')(undefined, options);
@@ -664,7 +599,7 @@ export const IsLatLong = options => createValidatorJsDecorator('latLong')(undefi
664
599
  * version only.
665
600
  *
666
601
  * @param version Optional IP version filter (`'4'`, `'6'`, or `'4_or_6'`).
667
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
602
+ * @param options Optional validation behavior (`message`, `code`, `each`).
668
603
  * @returns A field decorator that registers an IP-address rule.
669
604
  */
670
605
  export function IsIP(version, options) {
@@ -760,7 +695,7 @@ export function IsCurrency(options) {
760
695
  * Validates that the decorated array contains all required values.
761
696
  *
762
697
  * @param values Required values that must be present in the array.
763
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
698
+ * @param options Optional validation behavior (`message`, `code`, `each`).
764
699
  * @returns A field decorator that registers an array-contains rule.
765
700
  */
766
701
  export const ArrayContains = createArrayValidationDecorator((values, options) => ({
@@ -772,7 +707,7 @@ export const ArrayContains = createArrayValidationDecorator((values, options) =>
772
707
  * Validates that the decorated array excludes all forbidden values.
773
708
  *
774
709
  * @param values Forbidden values that must not be present in the array.
775
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
710
+ * @param options Optional validation behavior (`message`, `code`, `each`).
776
711
  * @returns A field decorator that registers an array-exclusion rule.
777
712
  */
778
713
  export const ArrayNotContains = createArrayValidationDecorator((values, options) => ({
@@ -783,7 +718,7 @@ export const ArrayNotContains = createArrayValidationDecorator((values, options)
783
718
  /**
784
719
  * Validates that the decorated array is not empty.
785
720
  *
786
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
721
+ * @param options Optional validation behavior (`message`, `code`, `each`).
787
722
  * @returns A field decorator that registers a non-empty-array rule.
788
723
  */
789
724
  export const ArrayNotEmpty = createFlagValidationDecorator(options => ({
@@ -794,7 +729,7 @@ export const ArrayNotEmpty = createFlagValidationDecorator(options => ({
794
729
  * Validates that the decorated array has at least the given size.
795
730
  *
796
731
  * @param value Inclusive minimum array length.
797
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
732
+ * @param options Optional validation behavior (`message`, `code`, `each`).
798
733
  * @returns A field decorator that registers a minimum-array-size rule.
799
734
  */
800
735
  export const ArrayMinSize = createValidationOptionsWithConfigDecorator((value, options) => ({
@@ -806,7 +741,7 @@ export const ArrayMinSize = createValidationOptionsWithConfigDecorator((value, o
806
741
  * Validates that the decorated array has at most the given size.
807
742
  *
808
743
  * @param value Inclusive maximum array length.
809
- * @param options Optional validation behavior (`message`, `groups`, `always`, `each`).
744
+ * @param options Optional validation behavior (`message`, `code`, `each`).
810
745
  * @returns A field decorator that registers a maximum-array-size rule.
811
746
  */
812
747
  export const ArrayMaxSize = createValidationOptionsWithConfigDecorator((value, options) => ({