When instantiated, represents a fully configured dereferencer. When constructed, references are pulled out. No references are fetched until .resolve is called.

Constructors

Properties

options: DereferencerOptions = {}
refCache: RefCache = {}
refs: string[]
schema: JSONSchema

Methods

  • First-pass traversal to collect all the refs that we can find. This allows us to optimize the async work required as well.

    Returns string[]

  • Fetches the schemas for all the refs in the configured input schema(s)

    Returns Promise<JSONSchema>

    a promise that will resolve a fully dereferenced schema, where all the promises for each ref has been resolved as well.