JSON::Validator::Ref - JSON::Validator $ref representation
use JSON::Validator::Ref; my $ref = JSON::Validator::Ref->new({ref => "...", schema => {...});
or:
tie my %ref, 'JSON::Validator::Ref', $schema, $path;
JSON::Validator::Ref is a class representing a $ref inside a JSON Schema.
$ref
This module SHOULD be considered internal to the JSON::Validator project and the API is subject to change.
$str = $ref->fqn;
The fully qualified version of "ref".
$str = $ref->ref;
The original $ref from the document.
$hash_ref = $ref->schema;
A reference to the schema that the /fqn points to.
/fqn
JSON::Validator.
To install JSON::Validator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::Validator
CPAN shell
perl -MCPAN -e shell install JSON::Validator
For more information on module installation, please visit the detailed CPAN module installation guide.