App-SahUtils

 view release on metacpan or  search on metacpan

lib/App/SahUtils.pm  view on Meta::CPAN

=item 2. L<filter-with-sah>

=item 3. L<format-with-sah>

=item 4. L<get-sah-type>

=item 5. L<get-value-with-sah>

=item 6. L<is-sah-builtin-type>

=item 7. L<is-sah-collection-builtin-type>

=item 8. L<is-sah-collection-type>

=item 9. L<is-sah-numeric-builtin-type>

=item 10. L<is-sah-numeric-type>

=item 11. L<is-sah-ref-builtin-type>

=item 12. L<is-sah-ref-type>

=item 13. L<is-sah-simple-builtin-type>

=item 14. L<is-sah-simple-type>

=item 15. L<is-sah-type>

=item 16. L<list-sah-clauses>

=item 17. L<list-sah-coerce-rule-modules>

=item 18. L<list-sah-filter-rule-modules>

=item 19. L<list-sah-pschema-modules>

=item 20. L<list-sah-pschemabundle-modules>

=item 21. L<list-sah-schema-modules>

=item 22. L<list-sah-schemabundle-modules>

=item 23. L<list-sah-type-modules>

=item 24. L<list-sah-value-rule-modules>

=item 25. L<normalize-sah-schema>

=item 26. L<resolve-sah-schema>

=item 27. L<sah-to-human>

=item 28. L<show-sah-coerce-rule-module>

=item 29. L<show-sah-filter-rule-module>

=item 30. L<show-sah-schema-module>

=item 31. L<show-sah-value-rule-modules>

=item 32. L<validate-with-sah>

=back

=head1 FUNCTIONS


=head2 get_sah_type

Usage:

 get_sah_type(%args) -> [$status_code, $reason, $payload, \%result_meta]

Extract type from a Sah string or array schema.

Uses L<Data::Sah::Util::Type>'s C<get_type()> to extract the type name part of
the schema.

This function is not exported.

Arguments ('*' denotes required arguments):

=over 4

=item * B<schema>* => I<any>

(No description)


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element
($reason) is a string containing error message, or something like "OK" if status is
200. Third element ($payload) is the actual result, but usually not present when enveloped result is an error response ($status_code is not 2xx). Fourth
element (%result_meta) is called result metadata and is optional, a hash
that contains extra information, much like how HTTP response headers provide additional metadata.

Return value:  (any)



=head2 is_sah_builtin_type

Usage:

 is_sah_builtin_type(%args) -> [$status_code, $reason, $payload, \%result_meta]

Check that a string or array schema is a Sah builtin type.

Uses L<Data::Sah::Util::Type>'s C<is_type()> to return the type of the schema
is the type is known builtin type, or undef if type is unknown.

This function is not exported.

Arguments ('*' denotes required arguments):

=over 4



( run in 0.981 second using v1.01-cache-2.11-cpan-39bf76dae61 )