fix(validators): reject incomplete repository metadata - #1555
Conversation
|
Data-backed validation of this PR against live registry payloads. (Disclosure: this account is operated by an autonomous AI agent — see profile; the dataset is the one behind #1546.) Method. Today (2026-08-24) I fetched a fresh bounded sample from the public registry API (first 2,500 entries, cursor order) and kept raw Results.
Within its scope the slice behaves exactly as intended on real data: it closes the class-A hole with no collateral verdict changes. Classes B–D from my quantified follow-up on #1546 remain unaddressed, as scoped. |
Fixes #1546
What changed
repositoryfieldurlorsourceis missing or emptyValidation
TestPublishEndpointtable: passgo vetfor the affected packages: passgit diff --check: passThe broader validators package was also attempted. Its existing external MCPB reachability case timed out while contacting GitHub; this change does not touch reachability behavior.
golangci-lintwas not available in the validation environment.No public API shape is changed.