toJsonSchema
function toJsonSchema(token: OpaqueSchemaToken): JsonSchemaConverts a schema token into a JSON Schema Draft 7 object.
Supports flat object descriptors, top-level array tokens, record tokens
([{ $record: … }]), and discriminated unions. Unrecognized descriptor
fields are omitted from properties rather than throwing.
token OpaqueSchemaToken
returns JsonSchema
Learn: Serialization