JSONSchema::Validator::Draft6 - Validator for JSON Schema Draft6
version 0.010
$validator = JSONSchema::Validator::Draft6->new(schema => {...}); my ($result, $errors) = $validator->validate_schema($object_to_validate);
JSON Schema Draft6 validator with minimum dependencies.
Creates JSONSchema::Validator::Draft6 object.
$validator = JSONSchema::Validator::Draft6->new(schema => {...});
Scheme according to which validation occurs.
Use strong type checks. Default value is 1.
Consider key $id to identify subschema when resolving links. For more details look at json schema docs about named anchors and bundling.
$id
At the moment, the validator can load a resource using the http, https protocols. You can add other protocols yourself.
sub loader { my $uri = shift; ... } $validator = JSONSchema::Validator::Draft6->new(schema => {...}, scheme_handlers => {ftp => \&loader});
Validate object instance according to schema.
Alexey Stavrov <logioniz@ya.ru>
Ivan Putintsev <uid@rydlab.ru>
Anton Fedotov <tosha.fedotov.2000@gmail.com>
Denis Ibaev <dionys@gmail.com>
Andrey Khozov <andrey@rydlab.ru>
This software is Copyright (c) 2021 by Alexey Stavrov.
This is free software, licensed under:
The MIT (X11) License
To install JSONSchema::Validator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSONSchema::Validator
CPAN shell
perl -MCPAN -e shell install JSONSchema::Validator
For more information on module installation, please visit the detailed CPAN module installation guide.