CodeSquared docs

OasArray

OasArray is an object representing an OpenAPI array schema.

Properties

PropertyTypeDescription
oasType'schema'Static value representing the OpenAPI schema type.
type'array'Static value representing the OpenAPI array schema type.
itemsOasSchema | OasRef<'schema'>OasSchema or reference to it, representing the items in the array.
titlestring | undefinedOptional title of the array.
descriptionstring | undefinedOptional description of the array.
nullableboolean | undefinedOptional flag indicating whether the array can be null.
uniqueItemsboolean | undefinedOptional flag indicating whether the array items must be unique.
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.
exampleunknown | undefinedOptional example value for the array.

Methods

isRef

Returns false indicating that the array is not a reference.

array.isRef()

Return value

false

resolve

Returns the array itself.

array.resolve()

Return value

The array itself.

resolveOnce

Returns the array itself.

array.resolveOnce()

Return value