Skip to content

[T] ExternalDocsDecorator

type ExternalDocsDecorator = (context, target, url, description?) => DecoratorValidatorCallbacks | void;

Specify the OpenAPI externalDocs property for this type.

ParameterTypeDescription
contextDecoratorContext-
targetType-
urlstringUrl to the docs
description?stringDescription of the docs

DecoratorValidatorCallbacks | void

@externalDocs("https://example.com/detailed.md", "Detailed information on how to use this operation")
op listPets(): Pet[];