Kwalify - Kwalify schema for data structures
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));
Validate $data according to Kwalify schema specified in $schema_data. Dies if the validation fails.
validate may be exported.
Slaven Rezić, <srezic@cpan.org>
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.
pkwalify, kwalify(1).
To install Kwalify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Kwalify
CPAN shell
perl -MCPAN -e shell install Kwalify
For more information on module installation, please visit the detailed CPAN module installation guide.