CodeSquared docs

OasNumber

OasNumber is a type that extends OasInteger and represents an OpenAPI number schema object.

Properties

PropertyTypeDescription
oasType'schema'Static value representing the OpenAPI schema type.
type'number'Static value representing the OpenAPI number schema type.
titlestring | undefinedOptional title of the number.
descriptionstring | undefinedOptional description of the number.
nullableboolean | undefinedOptional flag indicating whether the number can be null.
examplenumber | undefinedOptional example value for the number.
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 number is not a reference.

number.isRef()

Return value

false

resolve

Returns the number itself.

number.resolve()

Return value

The number itself.

resolveOnce

Returns the number itself.

number.resolveOnce()

Return value

The number itself.