Repository navigation
fix(depscore): handle validateRequiredByType errors (DEPSCAN-4P0N) - #262
Draft
Gerardo Sabetta (gerardosabetta) wants to merge 2 commits into
Draft
Gerardo Sabetta (gerardosabetta) wants to merge 2 commits into
Gerardo Sabetta (gerardosabetta) wants to merge 2 commits into
Conversation
Gerardo Sabetta (gerardosabetta)
added a commit
that referenced
this pull request
Dec 3, 2026
This branch has not been deployed
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.
Why
A schema-valid Swift package could make
depscorereturn JSON-RPC-32603. On 0.7.0,buildPurlpassed a missing Swift namespace toPackageURLat lib/purl.mts:43. The exception escaped batch conversion at lib/tool-depscore.mts:119. Sentry DEPSCAN-4P0NWhat changed
isError: trueresult with the first invalid package's name, index, and validation reason. Reject the entire batch before sending any request to the Socket API.host/owner/repoand HTTP(S) repository URLs, including a.gitsuffix. Hostless names prompt for the source host. The installed PURL library requires a concrete Swift version.Scope
The fix covers PURL validation and encoding errors in
depscore. Existing schema validation rejects null, missing required fields, wrong types, and stringified arrays.Verification
pnpm testpassed all 760 tests in 76 files.pnpm run checkpassed format, lint, type, build, manifest version, and content-scan checks.Slides