xiaoju
|
054d78296a
|
feat!: self-validating meta-schema for putSchema
Replace bootstrap payload with a JSON Schema meta-schema describing
our supported schema subset. putSchema now validates input schemas
against the meta-schema before storing, rejecting invalid schemas
with SchemaValidationError.
- bootstrap.ts: self-describing meta-schema (type, properties, required,
additionalProperties, anyOf, items, format, title, enum, const, description)
- schema.ts: recursive isValidSchema(), SchemaValidationError class
- index.ts: export SchemaValidationError
- package.json: bump 0.4.0 → 1.0.0 (breaking change)
BREAKING CHANGE: meta-schema hash changed, old CAS data invalid.
Fixes #15
|
2026-05-25 03:51:43 +00:00 |
|