Skip to content

linting feature: traverse a schema for $refs, and identify any that reference unknown resource locations #77

@karenetheridge

Description

@karenetheridge

When processing a schema, it can be helpful to know if there are any internal references to other schema documents, in order to determine if anything needs to be fetched from the network/disk/whatever in advance of evaluation (because we don't fetch documents in realtime).

This can be done easily enough with a traverse call with a $ref callback that knows how to resolve references. It could present the result as two lists of absolute URIs - those that are "known" and those that are not.

(This same method could then be reimplemented on the subclass, JSON::Schema::Modern::Document::OpenAPI, with special knowledge of how to traverse openapi documents.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions