NAME

Sah::SchemaBundle::Currency - Various Sah currency schemas

VERSION

This document describes version 0.009 of Sah::SchemaBundle::Currency (from Perl distribution Sah-SchemaBundle-Currency), released on 2024-06-26.

SAH SCHEMAS

The following schemas are included in this distribution:

  • currency::code

    Currency code.

    Accept only current (not retired) codes. Code will be converted to uppercase.

  • currency::pair

    Fiat currency pair, e.g. USD/IDR.

    Currency pair is string in the form of currency1/currency2, where currency1 is called the base currency while currency2 is the quote (or price) currency. Both must be known currency codes (e.g. USD, or IDR).

    Currency code is checked against Locale::Codes::Currency_Codes.

    Will be normalized to uppercase.

HOMEPAGE

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

SOURCE

Source repository is at https://github.com/perlancar/perl-Sah-SchemaBundle-Currency.

SEE ALSO

Sah - schema specification

Data::Sah - Perl implementation of Sah

Sah::SchemaBundle::CryptoCurrency

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, Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond that are considered a bug and can be reported to me.

COPYRIGHT AND LICENSE

This software is copyright (c) 2024, 2020, 2019, 2018 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-SchemaBundle-Currency

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.