| 1 | package Sah::Schema::nonnegint; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 6 | 1 | our $DATE = '2022-10-19'; # DATE | |
| 7 | 1 | our $DIST = 'Sah-Schemas-Int'; # DIST | |
| 8 | 1 | our $VERSION = '0.077'; # VERSION | |
| 9 | |||
| 10 | 1 | our $schema = [uint => { | |
| 11 | summary => 'Non-negative integer (0, 1, 2, ...), same as uint', | ||
| 12 | examples => [ | ||
| 13 | {data=>0 , valid=>1}, | ||
| 14 | {data=>1, valid=>1}, | ||
| 15 | {data=>-1, valid=>0}, | ||
| 16 | ], | ||
| 17 | links => [ | ||
| 18 | {url=>'pm:Types::XSD', summary=>'Semi-equivalent Type::Tiny constraints: NonNegativeInt ('}, | ||
| 19 | {url=>'pm:Types::Numbers', summary=>'Equivalent Type::Tiny constraints: PositiveOrZeroInt'}, | ||
| 20 | ], | ||
| 21 | }]; | ||
| 22 | |||
| 23 | 1 | 1; | |
| 24 | # ABSTRACT: Non-negative integer (0, 1, 2, ...), same as uint | ||
| 25 | |||
| 26 | __END__ | ||