effect-io-ai

Package: effect
Module: SchemaRepresentation

SchemaRepresentation.toJsonSchemaMultiDocument

Compiles multiple live representations to a shared JSON Schema Draft 2020-12 document.

When to use

Use when several representation roots must share the same JSON Schema definitions.

Gotchas

Every definition is compiled, including definitions that are not reachable from a root.

See

Signature

declare const toJsonSchemaMultiDocument: (document: MultiDocument, options?: Schema.ToJsonSchemaOptions) => JsonSchema.MultiDocument<"draft-2020-12">

Source

Since v4.0.0