Skip to content

[F] setExtension

function setExtension(
program,
entity,
extensionName,
data): void

Set OpenAPI extension on the given type. Equivalent of using @extension decorator

Parameters

ParameterTypeDescription
programProgramProgram
entityTypeType to annotate
extensionName`x-${string}`Extension key
dataunknownExtension value

Returns

void