Commit Graph

11 Commits

Author SHA1 Message Date
hypercross 1061e12c81 feat: enrich ParseError with schema and value context
Include the schema string and the input value in `ParseError` to
provide more helpful debugging information when parsing fails.
2026-04-22 16:14:23 +08:00
hypercross e76ae79b2d Add reverse reference schema (~tablename(foreignKey))
Support reverse references via ~tablename(foreignKey) syntax,
complementing forward @tablename references. Includes parser,
validator, and CSV loader integration with the new
ReverseReferenceSchema type.
2026-04-18 22:47:58 +08:00
hypercross 075045223f feat: add @type? optional notation 2026-04-17 11:41:06 +08:00
hypercross 392d5f1431 fix: fix minor gotchas 2026-04-15 14:12:16 +08:00
hypercross d5fdb69ad7 fix: fix nested references? 2026-04-15 13:24:51 +08:00
hypercross 51a11a26bf chore: add tests 2026-04-13 10:18:12 +08:00
hypercross 14948fb5f6 feat: union and string literals 2026-04-13 10:05:49 +08:00
hypercross daac7badbb feat: parse references 2026-04-11 22:56:01 +08:00
hypercross 4146fda348 feat: add int/float to types 2026-04-04 17:05:25 +08:00
hyper 23ee60bc20 feat: support named members in tuples
- Add NamedSchema interface with optional name property
- Update TupleSchema.elements to use NamedSchema[]
- Add parseNamedSchema() to support [x: number; y: number] syntax
- Update validator to parse named members in tuple values
- Fix schemaToTypeString in csv-loader for NamedSchema
- Fix createValidator to handle NamedSchema.schema
- Ensure single named element stays as tuple (not array)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-31 16:36:32 +08:00
hypercross 4296c2bdcd init: inline-schema thing 2026-03-31 12:17:46 +08:00