fix: validate schema exists in json-cas put command #58
Closed
xiaoju
wants to merge 1 commits from
fix/51-schema-validation into main
pull from: fix/51-schema-validation
merge into: uncaged:main
uncaged:main
uncaged:fix/90-list-meta-schema
uncaged:feat/82-schema-p3
uncaged:feat/82-schema-p2
uncaged:fix/83-put-hash-pipe
uncaged:fix/82-meta-schema-nested-validation
uncaged:feat/82-schema-p1-leaf-constraints
uncaged:fix/72-template-envelope
uncaged:fix/71-refs-walk-var-envelope
uncaged:fix/70-simple-envelope
uncaged:fix/75-output-schemas
uncaged:fix/74-remove-cat-schema
uncaged:fix/73-auto-bootstrap
uncaged:fix/66-e2e-snapshot-tests
uncaged:fix/e2e-reporter-containerName
uncaged:fix/55-store-path-validation
uncaged:fix/46-phase4-cleanup
uncaged:fix/40-liquidjs-integration
uncaged:fix/38-template-cli
uncaged:fix/39-render-rebase
uncaged:fix/39-render-resolution-decay
uncaged:fix/37-builtin-schema-aliases
uncaged:fix/34-cli-var-rewrite
uncaged:fix/32-variable-model-refactor
uncaged:fix/23-gc-integration
uncaged:fix/22-tag-label-query
uncaged:fix/27-phase1-code-style-fixes
uncaged:fix/24-ucas-alias
uncaged:fix/21-variable-crud
uncaged:fix/tsconfig-workspace-paths
uncaged:fix/align-versions-0.5.0
uncaged:fix/15-self-validating-meta-schema
uncaged:issue-11-remove-store-list
uncaged:feat/12-no-null-type
uncaged:feat/9-list-by-type
uncaged:cli/global-store-path
1 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
0aa9074de6 |
fix: validate schema exists in json-cas put command
Add schema existence check before storing nodes to prevent data corruption from invalid schema references. The put command now properly rejects non-existent schema hashes and @aliases with clear error messages. Changes: - Add store.has(typeHash) check in cmdPut before store.put() - Return exit code 1 with "Schema not found" error message - Add 11 comprehensive tests covering error and regression cases - All 392 tests pass, no regressions Fixes #51 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |