Skip to content

Serialization

Serialization converts domain objects back to wire form - the outgoing direction complementary to instantiate.

Methods

MethodReturnsDescription
dumpwire InputType (LooseInputType<…>, the brand-free wire-form value)Walk schema graph, apply encoders, filter
dumpJsonstringSame as dump but returns a JSON string
toSchemaRecord<string, unknown> | undefinedReconstruct JSON Schema from the canonical graph

All examples use the bookstore domain. See instantiate for the incoming direction.

See also

Released under the MIT License.