Schema type

Recursive definition for defining types

Signature:

export type Schema = {
    type: "string";
    description: string;
} | {
    type: "number";
    description: string;
} | {
    type: "boolean";
    description: string;
} | {
    type: "array";
    items: Schema;
    description: string;
} | {
    type: "object";
    properties: Record<string, Schema>;
    description: string;
};

References: Schema