Hyperlinkv0.8.0-beta.28

SchemaRepresentation

SchemaRepresentation.$Documentconsteffect/SchemaRepresentation.ts:1584
Schema.Struct<{
  readonly representation: $Representation
  readonly references: Schema.$Record<Schema.String, $Representation>
}>

Schema for Document.

When to use

Use to validate or serialize a single schema representation document with Schema.decodeUnknownSync or Schema.encodeSync.

Gotchas

This codec validates document structure but does not resolve $ref keys against references.

export const $Document = Schema.Struct({
  representation: $Representation,
  references: Schema.Record(Schema.String, $Representation)
}).annotate({ identifier: "Document" })
Referenced by 1 symbols