SchemaR/country/code/alpha2.pm

filter: Statementstmt 100% 4 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 4 / 4 SCAR 0
CC
0
Cov
0%
CRAP 0
« SchemaR/country/code.pm ↑ Summary SchemaR/country/code/alpha3.pm »
1 package Sah::SchemaR::country::code::alpha2;
2  
3 1 our $DATE = '2020-03-08'; # DATE
4 1 our $VERSION = '0.008'; # VERSION
5  
6 1 our $rschema = ["str",[{description=>"\nAccept only current (not retired) codes. Only alpha-2 codes are accepted.\n\nCode will be converted to lowercase.\n\n",examples=>[{valid=>0,value=>""},{valid=>1,validated_value=>"id",value=>"ID"},{summary=>"Only alpha-2 codes are allowed",valid=>0,value=>"IDN"},{valid=>0,value=>"xx"},{valid=>0,value=>"xxx"}],in=>["ad","ae","af","ag","ai","al","am","ao","aq","ar","as","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bl","bm","bn","bo","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","io","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mf","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","um","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"],match=>"\\A[a-z]{2}\\z",summary=>"Country code (alpha-2)","x.perl.coerce_rules"=>["From_str::to_lower"]}],["str"]];
7  
8 1 1;
9 # ABSTRACT: Country code (alpha-2)
10  
11 __END__
12  
13 =pod
14  
15 =encoding UTF-8
16  
17 =head1 NAME
18  
19 Sah::SchemaR::country::code::alpha2 - Country code (alpha-2)
20  
21 =head1 VERSION
22  
23 This document describes version 0.008 of Sah::SchemaR::country::code::alpha2 (from Perl distribution Sah-Schemas-Country), released on 2020-03-08.
24  
25 =head1 DESCRIPTION
26  
27 This module is automatically generated by Dist::Zilla::Plugin::Sah::Schemas during distribution build.
28  
29 A Sah::SchemaR::* module is useful if a client wants to quickly lookup the base type of a schema without having to do any extra resolving. With Sah::Schema::*, one might need to do several lookups if a schema is based on another schema, and so on. Compare for example L<Sah::Schema::poseven> vs L<Sah::SchemaR::poseven>, where in Sah::SchemaR::poseven one can immediately get that the base type is C<int>. Currently L<Perinci::Sub::Complete> uses Sah::SchemaR::* instead of Sah::Schema::* for reduced startup overhead when doing tab completion.
30  
31 =head1 HOMEPAGE
32  
33 Please visit the project's homepage at L<https://metacpan.org/release/Sah-Schemas-Country>.
34  
35 =head1 SOURCE
36  
37 Source repository is at L<https://github.com/perlancar/perl-Sah-Schemas-Country>.
38  
39 =head1 BUGS
40  
41 Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Sah-Schemas-Country>
42  
43 When submitting a bug or request, please include a test-file or a
44 patch to an existing test-file that illustrates the bug or desired
45 feature.
46  
47 =head1 AUTHOR
48  
49 perlancar <perlancar@cpan.org>
50  
51 =head1 COPYRIGHT AND LICENSE
52  
53 This software is copyright (c) 2020, 2019, 2018 by perlancar@cpan.org.
54  
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57  
58 =cut
« SchemaR/country/code.pm ↑ Summary SchemaR/country/code/alpha3.pm »