@@ -36,7 +36,7 @@ Async Validate
36
36
37
37
#### additional
38
38
39
- * [ doc/example/additional] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/additional.js ) .
39
+ * [ doc/example/additional] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/additional.js ) .
40
40
41
41
``` javascript
42
42
// generate errors when additional fields are present
@@ -106,7 +106,7 @@ schema.validate(source, opts, function(err, res) {
106
106
107
107
#### assigned-rule
108
108
109
- * [ doc/example/assigned-rule] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/assigned-rule.js ) .
109
+ * [ doc/example/assigned-rule] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/assigned-rule.js ) .
110
110
111
111
``` javascript
112
112
// assign a function to a rule
@@ -153,7 +153,7 @@ schema.validate(source, function(err, res) {
153
153
154
154
#### bail
155
155
156
- * [ doc/example/bail] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/bail.js ) .
156
+ * [ doc/example/bail] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/bail.js ) .
157
157
158
158
``` javascript
159
159
// bail on first error encountered
@@ -196,7 +196,7 @@ schema.validate(source, opts, function(err, res) {
196
196
197
197
#### deep
198
198
199
- * [ doc/example/deep] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/deep.js ) .
199
+ * [ doc/example/deep] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/deep.js ) .
200
200
201
201
``` javascript
202
202
// validate properties of a nested object
@@ -238,7 +238,7 @@ schema.validate(source, function(err, res) {
238
238
239
239
#### inline-rule
240
240
241
- * [ doc/example/inline-rule] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/inline-rule.js ) .
241
+ * [ doc/example/inline-rule] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/inline-rule.js ) .
242
242
243
243
``` javascript
244
244
// assign a function as a rule
@@ -277,7 +277,7 @@ schema.validate(source, function(err, res) {
277
277
278
278
#### instanceof
279
279
280
- * [ doc/example/instanceof] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/instanceof.js ) .
280
+ * [ doc/example/instanceof] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/instanceof.js ) .
281
281
282
282
``` javascript
283
283
// validate a field is an instanceof a function
@@ -312,7 +312,7 @@ schema.validate(source, function(err, res) {
312
312
313
313
#### len
314
314
315
- * [ doc/example/len] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/len.js ) .
315
+ * [ doc/example/len] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/len.js ) .
316
316
317
317
``` javascript
318
318
// validate a field length
@@ -346,7 +346,7 @@ schema.validate(source, function(err, res) {
346
346
347
347
#### match
348
348
349
- * [ doc/example/match] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/match.js ) .
349
+ * [ doc/example/match] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/match.js ) .
350
350
351
351
``` javascript
352
352
// validate all fields of an object
@@ -384,7 +384,7 @@ schema.validate(source, function(err, res) {
384
384
385
385
#### max
386
386
387
- * [ doc/example/max] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/max.js ) .
387
+ * [ doc/example/max] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/max.js ) .
388
388
389
389
``` javascript
390
390
// validate a field has a maximum length
@@ -423,7 +423,7 @@ schema.validate(source, function(err, res) {
423
423
424
424
#### message-clone
425
425
426
- * [ doc/example/message-clone] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/message-clone.js ) .
426
+ * [ doc/example/message-clone] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/message-clone.js ) .
427
427
428
428
``` javascript
429
429
// clone default messages
@@ -465,7 +465,7 @@ schema.validate(source, function(err, res) {
465
465
466
466
#### message-function
467
467
468
- * [ doc/example/message-function] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/message-function.js ) .
468
+ * [ doc/example/message-function] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/message-function.js ) .
469
469
470
470
``` javascript
471
471
// override error message with function
@@ -506,7 +506,7 @@ schema.validate(source, function(err, res) {
506
506
507
507
#### message-override
508
508
509
- * [ doc/example/message-override] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/message-override.js ) .
509
+ * [ doc/example/message-override] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/message-override.js ) .
510
510
511
511
``` javascript
512
512
// override default error message
@@ -547,7 +547,7 @@ schema.validate(source, function(err, res) {
547
547
548
548
#### message
549
549
550
- * [ doc/example/message] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/message.js ) .
550
+ * [ doc/example/message] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/message.js ) .
551
551
552
552
``` javascript
553
553
// override error message
@@ -585,7 +585,7 @@ schema.validate(source, function(err, res) {
585
585
586
586
#### min
587
587
588
- * [ doc/example/min] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/min.js ) .
588
+ * [ doc/example/min] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/min.js ) .
589
589
590
590
``` javascript
591
591
// validate a field has a minimum length
@@ -619,7 +619,7 @@ schema.validate(source, function(err, res) {
619
619
620
620
#### multiple-rules
621
621
622
- * [ doc/example/multiple-rules] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/multiple-rules.js ) .
622
+ * [ doc/example/multiple-rules] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/multiple-rules.js ) .
623
623
624
624
``` javascript
625
625
// validate a field with multiple rules
@@ -664,7 +664,7 @@ schema.validate(source, function(err, res) {
664
664
665
665
#### multiple-types
666
666
667
- * [ doc/example/multiple-types] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/multiple-types.js ) .
667
+ * [ doc/example/multiple-types] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/multiple-types.js ) .
668
668
669
669
``` javascript
670
670
// validate a field as one of multiple types
@@ -698,7 +698,7 @@ schema.validate(source, function(err, res) {
698
698
699
699
#### pattern
700
700
701
- * [ doc/example/pattern] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/pattern.js ) .
701
+ * [ doc/example/pattern] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/pattern.js ) .
702
702
703
703
``` javascript
704
704
// validate a field as matching a pattern
@@ -732,7 +732,7 @@ schema.validate(source, function(err, res) {
732
732
733
733
#### placeholder
734
734
735
- * [ doc/example/placeholder] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/placeholder.js ) .
735
+ * [ doc/example/placeholder] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/placeholder.js ) .
736
736
737
737
``` javascript
738
738
// use a placeholder to set a default value
@@ -766,7 +766,7 @@ schema.validate(source, function() {
766
766
767
767
#### plugin-rule
768
768
769
- * [ doc/example/plugin-rule] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/plugin-rule.js ) .
769
+ * [ doc/example/plugin-rule] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/plugin-rule.js ) .
770
770
771
771
``` javascript
772
772
// validate a field with a plugin rule
@@ -815,7 +815,7 @@ schema.validate(source, function(err, res) {
815
815
816
816
#### range
817
817
818
- * [ doc/example/range] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/range.js ) .
818
+ * [ doc/example/range] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/range.js ) .
819
819
820
820
``` javascript
821
821
// validate a field has a length within a range
@@ -855,7 +855,7 @@ schema.validate(source, function(err, res) {
855
855
856
856
#### required
857
857
858
- * [ doc/example/required] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/required.js ) .
858
+ * [ doc/example/required] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/required.js ) .
859
859
860
860
``` javascript
861
861
// validate a field as required
@@ -889,7 +889,7 @@ schema.validate(source, function(err, res) {
889
889
890
890
#### source-type
891
891
892
- * [ doc/example/source-type] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/source-type.js ) .
892
+ * [ doc/example/source-type] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/source-type.js ) .
893
893
894
894
``` javascript
895
895
// validate the type of the source object
@@ -918,7 +918,7 @@ schema.validate(source, function(err, res) {
918
918
919
919
#### state
920
920
921
- * [ doc/example/state] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/state.js ) .
921
+ * [ doc/example/state] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/state.js ) .
922
922
923
923
``` javascript
924
924
// pass state information between rule test functions
@@ -970,17 +970,17 @@ schema.validate(source, opts, function(err, res) {
970
970
```
971
971
972
972
```
973
- [ { [Error: email: could not resolve dns for domain 1442714024700 .com]
973
+ [ { [Error: email: could not resolve dns for domain 1452926841026 .com]
974
974
field: 'email',
975
- value: 'foo@1442714024700 .com',
976
- parent: { email: 'foo@1442714024700 .com' },
975
+ value: 'foo@1452926841026 .com',
976
+ parent: { email: 'foo@1452926841026 .com' },
977
977
names: [ 'email' ],
978
978
key: 'email' } ]
979
979
```
980
980
981
981
#### type
982
982
983
- * [ doc/example/type] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/type.js ) .
983
+ * [ doc/example/type] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/type.js ) .
984
984
985
985
``` javascript
986
986
// validate a field type
@@ -1014,7 +1014,7 @@ schema.validate(source, function(err, res) {
1014
1014
1015
1015
#### whitespace
1016
1016
1017
- * [ doc/example/whitespace] ( https://github.com/freeformsystems /async-validate/blob/master/doc/example/whitespace.js ) .
1017
+ * [ doc/example/whitespace] ( https://github.com/tmpfs /async-validate/blob/master/doc/example/whitespace.js ) .
1018
1018
1019
1019
``` javascript
1020
1020
// validate a field as whitespace
@@ -1046,7 +1046,7 @@ schema.validate(source, function(err, res) {
1046
1046
reason: { id: 'whitespace' } } ]
1047
1047
```
1048
1048
1049
- Generated by [ mdp(1)] ( https://github.com/freeformsystems /mdp ) .
1049
+ Generated by [ mdp(1)] ( https://github.com/tmpfs /mdp ) .
1050
1050
1051
1051
[ node ] : http://nodejs.org
1052
1052
[ npm ] : http://www.npmjs.org
0 commit comments