DOKK / manpages / debian 10 / libjson-validator-perl / JSON::Validator::Ref.3pm.en
JSON::Validator::Ref(3pm) User Contributed Perl Documentation JSON::Validator::Ref(3pm)

JSON::Validator::Ref - JSON::Validator $ref representation

  use JSON::Validator::Ref;
  my $ref = JSON::Validator::Ref->new({ref => "...", schema => {...});

JSON::Validator::Ref is a class representing a $ref inside a JSON Schema.

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.

JSON::Validator.

2019-02-15 perl v5.28.1