[E2E] put 不验证数据是否符合 schema #50

Closed
opened 2026-05-31 07:56:56 +00:00 by xingyue · 0 comments
Owner

Bug Report (E2E Check)

Phase: Schema Validation
Severity: High

Command:

echo '{"name":123}' > /tmp/bad.json
json-cas put <type-hash> /tmp/bad.json

schema 定义 namestring 类型,additionalProperties: false

Expected: 验证失败,返回错误,exit code 非零

Actual: 接受了 {"name":123},返回 hash,exit code 0。完全没有做 schema validation。

影响: CAS 的核心价值是类型安全——每个 node 都有 schema 约束。不验证等于 schema 形同虚设。


Reported by e2e-check workflow (Docker isolated, oven/bun:latest)

## Bug Report (E2E Check) **Phase:** Schema Validation **Severity:** High **Command:** ```bash echo '{"name":123}' > /tmp/bad.json json-cas put <type-hash> /tmp/bad.json ``` schema 定义 `name` 为 `string` 类型,`additionalProperties: false`。 **Expected:** 验证失败,返回错误,exit code 非零 **Actual:** 接受了 `{"name":123}`,返回 hash,exit code 0。完全没有做 schema validation。 **影响:** CAS 的核心价值是类型安全——每个 node 都有 schema 约束。不验证等于 schema 形同虚设。 --- _Reported by e2e-check workflow (Docker isolated, oven/bun:latest)_
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/json-cas#50