Integer type schema info.

interface IInteger {
    default?: null | number;
    deprecated?: boolean;
    description?: string;
    enum?: (null | number)[];
    example?: any;
    examples?: Record<string, any>;
    exclusiveMaximum?: boolean;
    exclusiveMinimum?: boolean;
    maximum?: number;
    minimum?: number;
    multipleOf?: number;
    nullable?: boolean;
    title?: string;
    type: "integer";
}

Hierarchy (View Summary)

Properties

default?: null | number

Default value.

deprecated?: boolean

Whether the type is deprecated or not.

description?: string

Detailed description of the schema.

enum?: (null | number)[]

Enumeration values.

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 document has defined the exclusiveMaximum value as number, it has been forcibly converted to boolean type, and assigns the numeric value to the maximum property in the OpenApi conversion.

exclusiveMinimum?: boolean

Exclusive minimum value restriction.

For reference, even though your Swagger document has defined the exclusiveMinimum value as number, it has been forcibly converted to boolean type, and assigns the numeric value to the minimum property in the OpenApi conversion.

maximum?: number

Maximum value restriction.

minimum?: number

Minimum value restriction.

multipleOf?: number

Multiple of value restriction.

0

nullable?: boolean

Whether to allow null value or not.

title?: string

Title of the schema.

type: "integer"

Discriminator value of the type.