Number (double) type info.

interface INumber {
    default?: number;
    deprecated?: boolean;
    description?: string;
    example?: any;
    examples?: Record<string, any>;
    exclusiveMaximum?: boolean;
    exclusiveMinimum?: boolean;
    maximum?: number;
    minimum?: number;
    multipleOf?: number;
    title?: string;
    type: "number";
}

Hierarchy (View Summary)

Properties

default?: number

Default value.

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.

exclusiveMaximum?: boolean

Exclusive maximum value restriction.

For reference, even though your Swagger (or OpenAPI) document has defined the exclusiveMaximum value as number, OpenAiComposer forcibly converts it to boolean type, and assign the numeric value to the maximum property.

exclusiveMinimum?: boolean

Exclusive minimum value restriction.

For reference, even though your Swagger (or OpenAPI) document has defined the exclusiveMinimum value as number, OpenAiComposer forcibly converts it to boolean type, and assign the numeric value to the minimum property.

maximum?: number

Maximum value restriction.

minimum?: number

Minimum value restriction.

multipleOf?: number

Multiple of value restriction.

0

title?: string

Title of the schema.

type: "number"

Discriminator value of the type.