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

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 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.

SEE ALSO

pkwalify, kwalify(1).