Data::Schema::Plugin::LoadSchema::Hash - Plugin to load schemas from hashes
version 0.136
use Data::Schema; # schemas are located in hashes my $schemas = { even => [int=>{divisible_by=>2}], } my $ds = Data::Schema->new; $ds->register_plugin('Data::Schema::Plugin::LoadSchema::Hash'); $ds->config->schema_search_path([$schemas]);
Get schema from hashes, or undef if not found. List of hashes to search from is specified in validator's schema_search_path config variable.
undef
schema_search_path
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2009 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.
To install Data::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Schema
CPAN shell
perl -MCPAN -e shell install Data::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.