1
- Validators availables
2
- =====================
1
+ Validators available
2
+ ====================
3
3
4
4
5
- At the moment, the library support this validations:
5
+ At the moment, the library supports these validations:
6
6
7
7
* Types
8
8
@@ -16,7 +16,7 @@ At the moment, the library support this validations:
16
16
* :ref: `in_length `
17
17
* :ref: `in_nan `
18
18
19
- * Comparision
19
+ * Comparison
20
20
21
21
* :ref: `in_lesser `
22
22
* :ref: `in_lesser_equal `
@@ -57,7 +57,7 @@ ValidateInteger
57
57
58
58
Check if the new value is a valid ``int `` or ``long `` type
59
59
60
- Parametes :
60
+ Parameters :
61
61
62
62
+-------------------------+-----------+-----------------------------------------------------------------+
63
63
| Parameter | Default | Description |
@@ -71,7 +71,7 @@ Parametes:
71
71
| message | None | Add a custom message to the ``ValidateError `` exception |
72
72
+-------------------------+-----------+-----------------------------------------------------------------+
73
73
74
- .. note :: ``long`` type is only available i Python 2.7
74
+ .. note :: ``long`` type is only available in Python 2.7
75
75
76
76
77
77
.. _in_numeric :
@@ -82,7 +82,7 @@ ValidateNumeric
82
82
Check if the new value is a valid ``int ``, ``long ``, ``float `` or ``complex `` type
83
83
84
84
85
- Parametes :
85
+ Parameters :
86
86
87
87
+-------------------------+----------+-----------------------------------------------------------------+
88
88
| Parameter | Default | Description |
@@ -108,7 +108,7 @@ ValidateString
108
108
109
109
Check if the new value is a valid ``string `` type.
110
110
111
- Parametes :
111
+ Parameters :
112
112
113
113
+-------------------------+----------+-----------------------------------------------------------------+
114
114
| Parameter | Default | Description |
@@ -131,7 +131,7 @@ ValidateBoolean
131
131
132
132
Check if the new value is a valid ``bool `` type.
133
133
134
- Parametes :
134
+ Parameters :
135
135
136
136
+-------------------------+----------+-----------------------------------------------------------------+
137
137
| Parameter | Default | Description |
@@ -150,9 +150,9 @@ Parametes:
150
150
Validatelength
151
151
--------------
152
152
153
- Check if the new value has a length with a maximun and a minimun
153
+ Check if the new value has a length with a maximum and a minimum
154
154
155
- Parametes :
155
+ Parameters :
156
156
157
157
+-------------------------+----------+-----------------------------------------------------------------+
158
158
| Parameter | Default | Description |
@@ -161,7 +161,7 @@ Parametes:
161
161
+-------------------------+----------+-----------------------------------------------------------------+
162
162
| max_length | None | Maximum value length |
163
163
+-------------------------+----------+-----------------------------------------------------------------+
164
- | min_length | 0 | Minumum value length |
164
+ | min_length | 0 | Minimum value length |
165
165
+-------------------------+----------+-----------------------------------------------------------------+
166
166
| throw_exception | False | Throw a ``ValidateError `` exception on validation fails |
167
167
+-------------------------+----------+-----------------------------------------------------------------+
@@ -176,7 +176,7 @@ ValidateNumber
176
176
177
177
Check if the new value is a number or not (NaN)
178
178
179
- Parametes :
179
+ Parameters :
180
180
181
181
+-------------------------+----------+-----------------------------------------------------------------+
182
182
| Parameter | Default | Description |
@@ -194,9 +194,9 @@ Parametes:
194
194
ValidateLessThan
195
195
----------------
196
196
197
- Check if the new value is a lesser than X value
197
+ Check if the new value is less than the value of X
198
198
199
- Parametes :
199
+ Parameters :
200
200
201
201
+-------------------------+----------+-----------------------------------------------------------------+
202
202
| Parameter | Default | Description |
@@ -217,9 +217,9 @@ Parametes:
217
217
ValidateLessThanOrEqual
218
218
-----------------------
219
219
220
- Check if the new value is a lesser than X value or equal
220
+ Check if the new value is less than or equal to the value of X
221
221
222
- Parametes :
222
+ Parameters :
223
223
224
224
+-------------------------+----------+-----------------------------------------------------------------+
225
225
| Parameter | Default | Description |
@@ -239,9 +239,9 @@ Parametes:
239
239
ValidateGreaterThan
240
240
-------------------
241
241
242
- Check if the new value is a greater than X value
242
+ Check if the new value is greater than the value of X
243
243
244
- Parametes :
244
+ Parameters :
245
245
246
246
+-------------------------+----------+-----------------------------------------------------------------+
247
247
| Parameter | Default | Description |
@@ -262,9 +262,9 @@ Parametes:
262
262
ValidateGreaterThanOrEqual
263
263
--------------------------
264
264
265
- Check if the new value is a greater than X value or equal
265
+ Check if the new value is greater than or equal to the value of X
266
266
267
- Parametes :
267
+ Parameters :
268
268
269
269
+-------------------------+----------+-----------------------------------------------------------------+
270
270
| Parameter | Default | Description |
@@ -285,20 +285,20 @@ Parametes:
285
285
ValidateEmail
286
286
-------------
287
287
288
- Check if the new value is a valid e-mail, using email_validator _ library.
288
+ Check if the new value is a valid e-mail, using the email_validator _ library.
289
289
290
- Parametes :
290
+ Parameters :
291
291
292
292
+-------------------------+----------+--------------------------------------------------------------------------------+
293
293
| Parameter | Default | Description |
294
294
+=========================+==========+================================================================================+
295
295
| field | | SQLAlchemy column to validate |
296
296
+-------------------------+----------+--------------------------------------------------------------------------------+
297
- | allow_smtputf8 | True | Allow internationalized addresses that would require the SMTPUTF8 _ extension. |
297
+ | allow_smtputf8 | True | Allow internationalized addresses that would require the SMTPUTF8 _ extension |
298
298
+-------------------------+----------+--------------------------------------------------------------------------------+
299
- | check_deliverability | True | Check domain name resolution. |
299
+ | check_deliverability | True | Check domain name resolution |
300
300
+-------------------------+----------+--------------------------------------------------------------------------------+
301
- | allow_empty_local | False | Allow an empty local part for validating Postfix aliases. |
301
+ | allow_empty_local | False | Allow an empty local part for validating Postfix aliases |
302
302
+-------------------------+----------+--------------------------------------------------------------------------------+
303
303
| allow_null | True | Allow ``null `` values |
304
304
+-------------------------+----------+--------------------------------------------------------------------------------+
@@ -315,9 +315,9 @@ Parametes:
315
315
ValidateRegex
316
316
-------------
317
317
318
- Compare a value against a regular expresion
318
+ Compare a value against a regular expression
319
319
320
- Parametes :
320
+ Parameters :
321
321
322
322
+-------------------------+-----------+-----------------------------------------------------------------+
323
323
| Parameter | Default | Description |
@@ -337,7 +337,7 @@ ValidateRange
337
337
338
338
Check if the new value is in a range
339
339
340
- Parametes :
340
+ Parameters :
341
341
342
342
+-------------------------+-----------+-----------------------------------------------------------------+
343
343
| Parameter | Default | Description |
@@ -361,7 +361,7 @@ ValidateIP
361
361
362
362
Check if the value is a valid IP Address
363
363
364
- Parametes :
364
+ Parameters :
365
365
366
366
+-------------------------+-----------+-----------------------------------------------------------------+
367
367
| Parameter | Default | Description |
@@ -385,7 +385,7 @@ ValidateURL
385
385
386
386
Check if the value is a valid URL
387
387
388
- Parametes :
388
+ Parameters :
389
389
390
390
+-------------------------+-----------+-----------------------------------------------------------------+
391
391
| Parameter | Default | Description |
@@ -408,7 +408,7 @@ ValidateUUID
408
408
409
409
Check if the value is a valid UUUID
410
410
411
- Parametes :
411
+ Parameters :
412
412
413
413
+-------------------------+-----------+-----------------------------------------------------------------+
414
414
| Parameter | Default | Description |
@@ -439,7 +439,7 @@ Check if the value is a valid Country. Validation provided by iso3166_. Allowed
439
439
* Numeric
440
440
* Apolitic Name
441
441
442
- Parametes :
442
+ Parameters :
443
443
444
444
+-------------------------+-----------+-----------------------------------------------------------------+
445
445
| Parameter | Default | Description |
@@ -462,7 +462,7 @@ ValidateTimezone
462
462
Check if the value is a valid Timezone. Validation provided by pytz _
463
463
464
464
465
- Parametes :
465
+ Parameters :
466
466
467
467
+-------------------------+-----------+-----------------------------------------------------------------+
468
468
| Parameter | Default | Description |
@@ -486,7 +486,7 @@ ValidateLocale
486
486
Check if the value is a valid Locale.
487
487
488
488
489
- Parametes :
489
+ Parameters :
490
490
491
491
+-------------------------+-----------+-----------------------------------------------------------------+
492
492
| Parameter | Default | Description |
@@ -516,7 +516,7 @@ Allowed formats:
516
516
* "XXXX-YYYY-WWWW-ZZZ"
517
517
518
518
519
- Parametes :
519
+ Parameters :
520
520
521
521
+-------------------------+-----------+-----------------------------------------------------------------+
522
522
| Parameter | Default | Description |
@@ -542,7 +542,7 @@ Check if the new value is a valid Currency
542
542
Validation provided by: moneyed _
543
543
544
544
545
- Parametes :
545
+ Parameters :
546
546
547
547
+-------------------------+-----------+-----------------------------------------------------------------+
548
548
| Parameter | Default | Description |
@@ -563,13 +563,13 @@ Parametes:
563
563
ValidateIBAN
564
564
------------
565
565
566
- Check if the new value is valid IBAN (International Bank Account Number)
566
+ Check if the new value is a valid IBAN (International Bank Account Number)
567
567
568
568
More reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number
569
569
570
570
571
571
572
- Parametes :
572
+ Parameters :
573
573
574
574
+-------------------------+-----------+-----------------------------------------------------------------+
575
575
| Parameter | Default | Description |
@@ -589,13 +589,13 @@ Parametes:
589
589
ValidateBIC
590
590
------------
591
591
592
- Check if the new value is valid BIC (SO 9362 defined standard format of Bank Identifier Codes )
592
+ Check if the new value is a valid BIC (SO 9362 defined standard format of Bank Identifier Codes)
593
593
594
594
More reference: https://en.wikipedia.org/wiki/ISO_9362
595
595
596
596
597
597
598
- Parametes :
598
+ Parameters :
599
599
600
600
+-------------------------+-----------+-----------------------------------------------------------------+
601
601
| Parameter | Default | Description |
@@ -624,7 +624,7 @@ More reference: https://en.wikipedia.org/wiki/International_Standard_Book_Number
624
624
625
625
626
626
627
- Parametes :
627
+ Parameters :
628
628
629
629
+-------------------------+-----------+-----------------------------------------------------------------+
630
630
| Parameter | Default | Description |
0 commit comments