Reject non-object JSON roots in skills validator

readJsonObject fails when catalog files parse to null, arrays,
or other non-object roots so structural checks cannot be skipped.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-07-10 13:43:22 +00:00
parent f1995f2c8f
commit 1588750090
2 changed files with 21 additions and 13 deletions

View File

@@ -30,4 +30,4 @@ this file.
- Access-review skill records entry notes only after successful API writes
- Release checksums derived from `npm pack` tarball contents
- Validation enforces `.claude-plugin/marketplace.json` structure and Codex
marketplace shape; `package.json` files list trimmed to paths that exist
marketplace shape; rejects non-object JSON roots in catalog files