TypeBox-integrated schema system for type-safe Relish encoding and decoding.
Provides schema constructors that combine TypeBox's runtime validation with
Relish's binary wire format, enabling full type safety from schema definition
through encoding and decoding.
TypeBox-integrated schema system for type-safe Relish encoding and decoding.
Provides schema constructors that combine TypeBox's runtime validation with Relish's binary wire format, enabling full type safety from schema definition through encoding and decoding.
Example
Defining and using a schema:
Example
Working with enums:
Remarks
This package bridges TypeBox's JSON Schema ecosystem with Relish's binary serialization. Key features:
For streaming encoding/decoding, use
@grounds/stream. For low-level wire format operations without schemas, use@grounds/core.See