Skip to content

Any way to get a canonical URI for an object resolved by a resolver? #257

@taminomara

Description

@taminomara

Hi!

I'm writing a documentation tool for our configs. Basically I'm iterating over a json schema and resolve $refs via a resolver. Whenever I resolve a new $ref, I need to decide whether to inline its contents or document it as a separate entry. For this, I need to know where said ref leads, i.e. transform it to an absolute URI (possible with an anchor).

Is there a way to do so without re-implementing Resolver.lookup in my code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions