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, IGeminiSchema forcibly converts it to anyOf type.

interface IAnyOf {
    anyOf: (
        | IGeminiSchema.IObject
        | IGeminiSchema.IBoolean
        | IGeminiSchema.IInteger
        | IGeminiSchema.INumber
        | IGeminiSchema.IString
        | IGeminiSchema.IArray
        | IGeminiSchema.IReference
        | IGeminiSchema.INull
        | IGeminiSchema.IUnknown
    )[];
    deprecated?: boolean;
    description?: string;
    example?: any;
    examples?: Record<string, any>;
    title?: string;
    "x-discriminator"?: IGeminiSchema.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.

title?: string

Title of the schema.

"x-discriminator"?: IGeminiSchema.IAnyOf.IDiscriminator

Discriminator info of the union type.