refactor: rename casRef to x-cas-ref for JSON Schema compliance (Phase 3) #292

Merged
xiaomo merged 1 commits from feat/285-phase3-x-cas-ref into main 2026-05-16 11:55:25 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 33f9425848 refactor: rename casRef to x-cas-ref for JSON Schema compliance
Rename .meta({ casRef: true }) to .meta({ 'x-cas-ref': true }) across
all schema annotations. Zod v4 toJSONSchema automatically outputs
x-cas-ref in the generated JSON Schema, so buildDescriptor preserves
the annotation without any code changes.

Add buildDescriptor test verifying x-cas-ref appears in descriptor
output for annotated fields and is absent for plain fields.

220 tests pass, 0 fail.

Fixes #291, Refs #285
2026-05-16 11:52:17 +00:00