You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
The text was updated successfully, but these errors were encountered:
This can be done after #51, which involves tracking all known schema locations in a document.
karenetheridge
changed the title
feature: traverse a schema for $refs, and identify any that reference unknown resource locations
linting feature: traverse a schema for $refs, and identify any that reference unknown resource locations
Dec 9, 2023
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.)
The text was updated successfully, but these errors were encountered: