| 1 | package Sah::Schema::uint32; | ||
| 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 = [int => { | |
| 11 | summary => '32-bit unsigned integer', | ||
| 12 | min => 0, | ||
| 13 | max => 2**32-1, | ||
| 14 | examples => [ | ||
| 15 | {data=> 0, valid=>1}, | ||
| 16 | {data=>-1, valid=>0}, | ||
| 17 | {data=>2**32-1, valid=>1}, | ||
| 18 | {data=>2**32, valid=>0}, | ||
| 19 | ], | ||
| 20 | links => [ | ||
| 21 | {url=>'pm:Types::CLike', summary=>'Equivalent Type::Tiny constraints: UInt, UnsignedInt, UInt32, Unsigned32'}, | ||
| 22 | {url=>'pm:Types::XSD', summary=>'Equivalent Type::Tiny constraints: UnsignedInt'}, | ||
| 23 | ], | ||
| 24 | }]; | ||
| 25 | |||
| 26 | 1 | 1; | |
| 27 | # ABSTRACT: 32-bit unsigned integer | ||
| 28 | |||
| 29 | __END__ | ||