« blib/lib/JMAP/Validation/Checks/ContactGroup.pm
↑ Summary
blib/lib/JMAP/Validation/Checks/Emailer.pm »
| 1 | package JMAP::Validation::Checks::ContactInformation; | ||
| 2 | |||
| 3 | use JMAP::Validation::Tests::ContactInformation; | ||
| 4 | use Test2::Bundle::Extended; | ||
| 5 | |||
| 6 | our $is_ContactInformation_emails = array { | ||
| 7 | filter_items { | ||
| 8 | grep { ! JMAP::Validation::Tests::ContactInformation::is_ContactInformation_email($_) } @_ | ||
| 9 | }; | ||
| 10 | end(); | ||
| 11 | }; | ||
| 12 | |||
| 13 | our $is_ContactInformation_phones = array { | ||
| 14 | filter_items { | ||
| 15 | grep { ! JMAP::Validation::Tests::ContactInformation::is_ContactInformation_phone($_) } @_ | ||
| 16 | }; | ||
| 17 | end(); | ||
| 18 | }; | ||
| 19 | |||
| 20 | our $is_ContactInformation_online = array { | ||
| 21 | filter_items { | ||
| 22 | grep { ! JMAP::Validation::Tests::ContactInformation::is_ContactInformation_online($_) } @_ | ||
| 23 | }; | ||
| 24 | end(); | ||
| 25 | }; | ||
| 26 | |||
| 27 | 1; |