CodeSquared docs

OasInteger

OasInteger is an object representing an OpenAPI integer schema.

Properties

PropertyTypeDescription
oasType'schema'Static value representing the OpenAPI schema type.
type'integer'Static value representing the OpenAPI integer schema type.
titlestring | undefinedOptional title of the integer.
descriptionstring | undefinedOptional description of the integer.
format'int32' | 'int64' | undefinedOptional format of the integer.
enumsnumber[] | undefinedOptional array of allowed integer values.
nullableboolean | undefinedOptional flag indicating whether the integer can be null.
examplenumber | undefinedOptional example value for the integer.
extensionFieldsRecord<string, unknown> | undefinedOptional map of custom fields defined by OpenAPI extensions. Keys are strings beginning with x- and values are of any valid JSON type.

Methods

isRef

Returns false indicating that the integer is not a reference.

integer.isRef()

Return value

false

resolve

Returns the integer itself.

integer.resolve()

Return value

The integer itself.

resolveOnce

Returns the integer itself.

integer.resolveOnce()

Return value

The integer itself.