NAME
Data::Schema::Plugin::LoadSchema::Hash - Plugin to load schemas from hashes
VERSION
version 0.134
SYNOPSIS
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]);
METHODS
get_schema($self, $name)
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.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
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.