Skip to content

InputSchemaDocument

A JSON Schema (draft 2020-12) document produced by generateInputSchema.

This document sits outside the definition-document family. It holds one branch for a single invocable command, a oneOf union for several, and a bare object schema when a CLI has none.

Signatures

ts
type InputSchemaDocument = { $schema: string; } & InputSchemaBranch | { $schema: string; oneOf: readonly InputSchemaBranch[]; } | { $schema: string; type: "object"; };

See Also

Released under the MIT License.