File: Person.pm

package info (click to toggle)
libvalidation-class-perl 7.900059-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,480 kB
  • sloc: perl: 21,493; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 274 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package MyVal::Person;

use Validation::Class;

mixin TMP => {
    required => 1,
    min_length => 1,
    max_length => 255,
};

field name => {
    mixin => 'TMP',
    label => 'Person\'s name'
};

field email => {
    mixin => 'TMP',
    label => 'Person\'s email'
};

1;