Union type.

IAnyOf represents a union type in TypeScript (A | B | C).

For reference, even if your Swagger (or OpenAPI) document defines anyOf instead of oneOf, IChatGptSchema forcibly converts it to anyOf type.

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

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.

readOnly?: boolean

Whether the property is read-only.

title?: string

Title of the schema.

writeOnly?: boolean

Whether the property is write-only.

Discriminator info of the union type.