CodeSquared docs

OasIntersection

OasIntersection is an object representing an intersection type as expressed in OpenAPI as allOf.

Properties

PropertyTypeDescription
oasType'schema'Static value representing the OpenAPI intersection type.
type'intersection'Static value indicating intersection type.
titlestring | undefinedOptional title of the intersection type.
descriptionstring | undefinedOptional description of the intersection type.
nullableboolean | undefinedOptional flag indicating if the intersection type is nullable.
exampleunknown | undefinedOptional example value for the intersection type.
membersOasSchema | OasRef<'schema'>Intersection members types.
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 intersection is not a reference.

intersection.isRef()

Return value

false

resolve

Returns the intersection object itself.

intersection.resolve()

Return value

The intersection object itself.

resolveOnce

Returns the intersection object itself.

intersection.resolveOnce()

Return value

The intersection object itself.