Schema Forge social card

About

An XSD-driven schema system for TypeScript that crystallised the validation approach used across the Iris ILR toolkit. It separates the parsing concern, building SchemaRegistry objects with element trees, lookup maps, and full constraint metadata, from the application concerns of validation, CSV mapping, and XML generation. Data is validated against XSD-defined types, patterns, cardinality, ranges, and enumerations; flat CSV columns map to nested XSD paths with optional named transforms; and XML is generated from data objects using the schema structure and namespace information. Over 17 built-in transformation functions cover common type conversion, string formatting, and date handling.

Highlights

  • XSD parsing into SchemaRegistry objects with element trees, lookup maps, and full constraint metadata.
  • Data validation against XSD-defined constraints: types, patterns, cardinality, ranges, enumerations.
  • CSV-to-schema mapping: flat CSV columns to nested XSD paths with optional named transforms.
  • XML generation from data objects using the schema structure and namespace information.
  • 17+ built-in transformation functions for type conversion, string formatting, and date handling.

By the numbers

Commits
38
Lines added
+8,299
Lines removed
−216
Source files
5,931