File: Location.pm

package info (click to toggle)
libvalidation-class-perl 7.900057-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,616 kB
  • sloc: perl: 21,493; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package T::Location;

use Validation::Class;

field  'state'  => { state => 1 };
field  'string' => { mixin => ':str' };

document 'location' => {
    'id'       => 'string',
    'type'     => 'string',
    'name'     => 'string',
    'company'  => 'string',
    'address1' => 'string',
    'address2' => 'string',
    'city'     => 'string',
    'state'    => 'state',
    'zip'      => 'string'
};

1;