CodeSquared docs

OasExample

OasExample is an object representing the OpenAPI example object.

Properties

PropertyTypeDescription
oasType'example'Static value representing the OpenAPI example type.
summarystring | undefinedOptional short description for the example.
descriptionstring | undefinedOptional long description for the example.
valueunknownExample value.
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 example is not a reference.

example.isRef()

Return value

false

resolve

Returns the example itself.

example.resolve()

Return value

The example itself.

resolveOnce

Returns the example itself.

example.resolveOnce()

Return value

The example itself.