---
name: "JSON::Validator::Ref"
section: "3pm"
platform: "linux"
package: "libjson-validator-perl"
version: "4.14+dfsg-1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/JSON::Validator::Ref"
---

# JSON::Validator::Ref(3pm)

JSON::Validator $ref representation

## NAME

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

## SYNOPSIS

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

or:

```
  tie my %ref, 'JSON::Validator::Ref', $schema, $path;
```

## DESCRIPTION

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.

## ATTRIBUTES

### fqn

```
  $str = $ref->fqn;
```

The fully qualified version of "ref".

### ref

```
  $str = $ref->ref;
```

The original `$ref` from the document.

### schema

```
  $hash_ref = $ref->schema;
```

A reference to the schema that the `"/fqn"` points to.

## SEE ALSO

JSON::Validator.
