Union type.

IOneOf represents an union type of the TypeScript (A | B | C`).

For reference, even though your Swagger (or OpenAPI) document has defined anyOf instead of the oneOf, IChatGptSchema forcibly converts it to oneOf type.

interface IAnyOf {
    anyOf: (
        | IChatGptSchema.IBoolean
        | IChatGptSchema.IInteger
        | IChatGptSchema.INumber
        | IChatGptSchema.IString
        | IChatGptSchema.IArray
        | IChatGptSchema.IObject
        | IChatGptSchema.IReference
        | IChatGptSchema.INull
        | IChatGptSchema.IUnknown
    )[];
    deprecated?: boolean;
    description?: string;
    example?: any;
    examples?: Record<string, any>;
    title?: string;
}

Hierarchy (View Summary)

Properties

List of the union types.

deprecated?: boolean

Whether the type is deprecated or not.

description?: string

Detailed description of the schema.

example?: any

Example value.

examples?: Record<string, any>

List of example values as key-value pairs.

title?: string

Title of the schema.