App-SahUtils
view release on metacpan or search on metacpan
script/sah-to-human view on Meta::CPAN
schema => {
schema=>'any*',
pos=>0,
tags => ['category:schema-specification'],
},
schema_file => {
schema=>'str*',
summary => 'Retrieve schema from file',
description => <<'_',
JSON and YAML formats are supported. File type will be guessed from filename,
defaults to JSON.
_
cmdline_aliases => {f=>{}},
'x.schema.entity' => 'filename',
tags => ['category:schema-specification'],
},
schema_file_type => {
schema=>['str*', in=>[qw/json yaml/]],
summary => 'Give hint for schema file type',
script/sah-to-human view on Meta::CPAN
Give hint for schema file type.
Valid values:
["json","yaml"]
=item B<--schema-file>=I<filename>, B<-f>
Retrieve schema from file.
JSON and YAML formats are supported. File type will be guessed from filename,
defaults to JSON.
=item B<--schema-json>=I<s>
See C<--schema>.
Can also be specified as the 1st command-line argument.
=item B<--schema>=I<s>
script/validate-with-sah view on Meta::CPAN
#schema=>['any*', prefilters=>['Str::try_decode_json']], # doesn't work yet because Perinci::Sub::GetArgs::Argv croaks before we get to here
schema=>['any*'],
pos=>0,
tags => ['category:schema-specification'],
},
schema_file => {
schema=>'str*',
summary => 'Retrieve schema from file',
description => <<'_',
JSON, YAML, and Perl formats are supported. File type will be guessed from
filename, defaults to JSON.
_
cmdline_aliases => {f=>{}},
'x.schema.entity' => 'filename',
tags => ['category:schema-specification'],
},
schema_file_type => {
schema=>['str*', in=>[qw/json yaml perl/]],
summary => 'Give hint for schema file type',
script/validate-with-sah view on Meta::CPAN
multiple_data => {
summary => 'Validate multiple data (array of data) against schema',
schema => ['array*', of=>'any'],
tags => ['category:data-specification'],
},
data_file => {
schema=>'str*',
summary => 'Retrieve data from file',
description => <<'_',
JSON, YAML, and Perl formats are supported. File type will be guessed from
filename, defaults to JSON.
_
'x.schema.entity' => 'filename',
tags => ['category:data-specification'],
},
multiple_data_file => {
schema=>'str*',
summary => 'Retrieve multiple data from file',
description => <<'_',
script/validate-with-sah view on Meta::CPAN
Give hint for data file type.
Valid values:
["json","yaml","perl"]
=item B<--data-file>=I<filename>
Retrieve data from file.
JSON, YAML, and Perl formats are supported. File type will be guessed from
filename, defaults to JSON.
=item B<--data-json>=I<s>
See C<--data>.
Can also be specified as the 2nd command-line argument.
=item B<--data>=I<s>
script/validate-with-sah view on Meta::CPAN
Give hint for schema file type.
Valid values:
["json","yaml","perl"]
=item B<--schema-file>=I<filename>, B<-f>
Retrieve schema from file.
JSON, YAML, and Perl formats are supported. File type will be guessed from
filename, defaults to JSON.
=item B<--schema-json>=I<s>
See C<--schema>.
Can also be specified as the 1st command-line argument.
=item B<--schema-module>=I<s>, B<-m>
( run in 0.462 second using v1.01-cache-2.11-cpan-748bfb374f4 )