Hyperlinkv0.8.0-beta.28

JsonSchema

JsonSchema.MultiDocumentinterfaceeffect/JsonSchema.ts:155
MultiDocument<D>

Like Document, but carries multiple root schemas that share a single definitions pool.

When to use

Use when generating several schemas, such as a request body and a response body, that reference the same set of definitions.

Details

The schemas tuple is non-empty and contains at least one element.

export interface MultiDocument<D extends Dialect> {
  readonly dialect: D
  readonly schemas: readonly [JsonSchema, ...Array<JsonSchema>]
  readonly definitions: Definitions
}
Referenced by 3 symbols