NAME

Data::Sah::Human - Some functions to use Data::Sah human compiler

VERSION

version 0.23

RELEASE DATE

2014-04-25

SYNOPSIS

use Data::Sah::Human qw(gen_human_msg);

say gen_human_msg(["int*", min=>2]); # -> "Integer, minimum 2"

DESCRIPTION

FUNCTIONS

None exported by default.

gen_human_msg($schema, \%opts) => STR (or ANY)

Compile schema using human compiler and return the result.

Known options (unknown ones will be passed to the compiler):

  • source => BOOL (default: 0)

    If set to true, will return raw compilation result.

ENVIRONMENT

LOG_SAH_VALIDATOR_CODE

SEE ALSO

Data::Sah, Data::Sah::Compiler::human.

HOMEPAGE

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

SOURCE

Source repository is at https://github.com/sharyanto/perl-Data-Sah.

BUGS

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

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.

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Steven Haryanto.

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