Crate referencing

Source
Expand description

§referencing

An implementation-agnostic JSON reference resolution library for Rust.

Modules§

meta
Built-in JSON Schema meta-schemas.
uri
URI handling utilities for JSON Schema references.

Structs§

DefaultRetriever
A retriever that always fails, used as a default when external resource fetching is not needed.
Iri
An IRI.
IriRef
An IRI reference, i.e., either a IRI or a relative reference.
List
An immutable singly-linked list.
Registry
A registry of JSON Schema resources, each identified by their canonical URIs.
RegistryOptions
Configuration options for creating a Registry.
Resolved
A reference resolved to its contents by a Resolver.
Resolver
A reference resolver.
Resource
An owned document with a concrete interpretation under a JSON Schema specification.
ResourceRef
A borrowed document with a concrete interpretation under a JSON Schema specification.
Uri
A URI.
UriRef
A URI reference, i.e., either a URI or a relative reference.
VocabularySet
A set of enabled JSON Schema vocabularies.

Enums§

Draft
JSON Schema specification versions.
Error
Errors that can occur during reference resolution and resource handling.
UriError
Errors that can occur during URI handling.
Vocabulary
A JSON Schema vocabulary identifier, representing standard vocabularies (Core, Applicator, etc.) or custom ones via URI.

Statics§

SPECIFICATIONS
Pre-loaded registry containing all JSON Schema meta-schemas and their vocabularies

Traits§

Retrieve
Trait for retrieving resources from external sources.

Functions§

parse_index
pointer
Look up a value by a JSON Pointer.
unescape_segment
Unescape JSON Pointer path segments by converting ~1 to / and ~0 to ~.