JSON::Schema::Draft201909::Document - One JSON Schema document
version 0.011
use JSON::Schema::Draft201909::Document; my $document = JSON::Schema::Draft201909::Document->new( canonical_uri => 'https://example.com/v1/schema', schema => $schema, ); my $foo_definition = $document->get('/$defs/foo'); my %resource_index = $document->resource_index;
This class represents one JSON Schema document, to be used by JSON::Schema::Draft201909.
The actual raw data representing the schema.
When passed in during construction, this represents the initial URI by which the document should be known. It is overwritten with the root schema's $id property when one exists, and as such can be considered the canonical URI for the document as a whole.
$id
An index of URIs to subschemas (json path to reach the location, and the canonical uri of that location) for all identifiable subschemas found in the document. An entry for URI '' is added only when no other suitable identifier can be found for the root schema.
''
This attribute should only be used by JSON::Schema::Draft201909 and not intended for use externally (you should use the public accessors in JSON::Schema::Draft201909 instead).
Check if "schema" contains a value that can be identified with the given JSON Pointer. See "contains" in Mojo::JSON::Pointer.
Extract value from "schema" identified by the given JSON Pointer. See "get" in Mojo::JSON::Pointer.
Bugs may be submitted through https://github.com/karenetheridge/JSON-Schema-Draft201909/issues.
I am also usually active on irc, as 'ether' at irc.perl.org and irc.freenode.org.
irc.perl.org
irc.freenode.org
Karen Etheridge <ether@cpan.org>
This software is copyright (c) 2020 by Karen Etheridge.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install JSON::Schema::Draft201909, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::Schema::Draft201909
CPAN shell
perl -MCPAN -e shell install JSON::Schema::Draft201909
For more information on module installation, please visit the detailed CPAN module installation guide.