NAME
Kwalify - Kwalify schema for data structures
SYNOPSIS
use Kwalify qw(validate);
validate($schema, $data);
Typically used together with YAML or JSON:
use YAML;
validate(YAML::LoadFile($schema_file), YAML::LoadFile($data_file));
use JSON;
validate(jsonToObj($schema_data), jsonToObj($data));
DESCRIPTION
Kwalify is a Perl implementation for validating data structures against the Kwalify schema. For a schema definition, see http://www.kuwata-lab.com/kwalify/ruby/users-guide.01.html.
validate($schema_data, $data)
Validate $data according to Kwalify schema specified in $schema_data. Dies if the validation fails.
validate may be exported.
AUTHOR
Slaven Rezić, <srezic@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006,2007,2008 by Slaven Rezić
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.