CodeSquared docs

OasString

OasString is an object representing an OpenAPI string schema.

Properties

PropertyTypeDescription
oasType'schema'Static value representing the OpenAPI schema type.
type'string'Static value representing the OpenAPI string schema type.
titlestring | undefinedOptional title of the string.
descriptionstring | undefinedOptional description of the string.
formatstring | undefinedOptional format of the string.
enumsstring[] | undefinedOptional array of allowed string values.
nullableboolean | undefinedOptional flag indicating whether the string can be null.
examplestring | undefinedOptional example value for the string.
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 string is not a reference.

string.isRef()

Return value

false

resolve

Returns the string itself.

string.resolve()

Return value

The string itself.

resolveOnce

Returns the string itself.

string.resolveOnce()
**Return value**
The string itself.