NAME

Sah::Schemas::Str - Various string schemas

VERSION

This document describes version 0.006 of Sah::Schemas::Str (from Perl distribution Sah-Schemas-Str), released on 2022-06-08.

SAH SCHEMAS

The following schemas are included in this distribution:

  • hexstr

    String of bytes in hexadecimal.

  • latin_alpha

    String containing only zero or more Latin letters, i.e. A-Z or a-z.

  • latin_alphanum

    String containing only zero or more Latin letters/digits, i.e. A-Za-z0-9.

  • latin_letter

    Latin letter, i.e. A-Z or a-z.

  • str_or_aos

    String or array (0+ length) of (defined) string.

  • str_or_aos1

    String or array (1+ length) of (defined) string.

  • str_or_re

    String or regex (if string is of the form `/.../`).

    If string is of the form of /.../, then it will be parsed as a regex. Currently modifiers i, m, and s after the second / are allowed.

    Otherwise, it's accepted as a plain string.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Sah-Schemas-Str.

SOURCE

Source repository is at https://github.com/perlancar/perl-Sah-Schemas-Str.

SEE ALSO

Sah - schema specification

Data::Sah - Perl implementation of Sah

AUTHOR

perlancar <perlancar@cpan.org>

CONTRIBUTING

To contribute, you can send patches by email/via RT, or send pull requests on GitHub.

Most of the time, you don't need to build the distribution yourself. You can simply modify the code, then test via:

% prove -l

If you want to build the distribution (e.g. to try to install it locally on your system), you can install Dist::Zilla, Dist::Zilla::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required beyond that are considered a bug and can be reported to me.

COPYRIGHT AND LICENSE

This software is copyright (c) 2022, 2020 by perlancar <perlancar@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Sah-Schemas-Str

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.