CodeSquared docs

OasBoolean

OasBoolean is an object representing an OpenAPI boolean schema.

Properties

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

boolean.isRef()

Return value

false

resolve

Returns the boolean itself.

boolean.resolve()

Return value

The boolean itself.

resolveOnce

Returns the boolean itself.

boolean.resolveOnce()

Return value

The boolean itself.