Repository navigation
Artifact inspection: $id bases, $ref in data, documents in the release catalog (#857) - #864
Merged
Merged
Conversation
… the catalog (#857) Artifact inspection follow-ups from #857, items 1, 3, 5 and 7: - $id bases: a schema's $id (JSON Schema and OpenAPI 3.1 Schema Objects) sets the base for relative $refs inside it. A relative $id stays in the package (an escaping one turns its relative refs into path-escape); an absolute remote $id makes them remote, reported and never fetched. A ref to a resource the same file identifies resolves to that subschema. - $ref in data: references are read only in reference positions, so a $ref or $id inside const, enum, default, example(s), an Example Object value or a Swagger 2.0 response examples map is data. - The release addon-catalog.json carries each artifact's documents (path and media type only, bounded, never contents), so get_release_addon_catalog lists them before installation. - A duplicate provider is reported once, by the list of the set-aside package's kind, instead of by both extensions and artifacts list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 28, 2026 21:12
This was referenced Sep 28, 2026
Merged
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes items 1, 3, 5 and 7 of #857. Items 2, 4 and 6 need a design decision; the options are posted on the issue.
Changes
$idbases (item 1). In JSON Schema documents and OpenAPI 3.1+ Schema Objects, a schema's$idnow sets the base for the relative$refs inside it.$idresolves inside the package. If it would leave the package, every ref under it is reported aspath-escape.$idmakes the refs under it remote: they get a warning and are never fetched.$id. A plain-name$id(#x) is an anchor and sets no base.$id.$refinside data (item 3). The ref walk now follows a small grammar of places where references can appear.$refinsideconst,enum,default,exampleandexamples, and inside Example Objectvalues, is data. Properties or components that are merely named like those keywords are still walked.addon-catalog.jsoncarries each artifact'sdocuments(path and media type only, never contents). They are validated with the descriptor rules: at most 32, relative paths, the closed media-type set, artifacts only.$idbases, what counts as data, the duplicate rule), RUNTIME-IMPLEMENTATION (RIM-ARTIFACT-INSPECT-001,RIM-ADDON-001), TOOLING. Regenerated outputs are included.Evidence (macOS, Node 26)
npm run verifypasses.npm test: 1120/1120.npm run test:addons: 6/6.npm run test:packagepasses; core packs to 878,324 bytes.$id; a remote$idthat is never fetched;$refin data across JSON Schema, OpenAPI 3.1 and Swagger 2.0; one report per duplicate; the catalog documents round-trip and are refused when invalid.Limits
$idlookup covers same-file resources only.🤖 Generated with Claude Code