Skip to content

[T] OpenAPI3Link

type OpenAPI3Link =
| {
operationRef: Ref<unknown>;
}
| {
operationId: string;
};

Type declaration

{ operationRef: Ref<unknown>; }

NameTypeDescription
operationRefRef<unknown>A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition.

{ operationId: string; }

NameTypeDescription
operationIdstringthe name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field.