Skip to content

Commit 5943508

Browse files
Merge pull request #3248 from mag123c/3179-security-scheme-extension
feat(swagger): add extension in SecuritySchemeObject
2 parents d4acd13 + f930fec commit 5943508

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/interfaces/open-api-spec.interface.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ export interface SecuritySchemeObject {
262262
flows?: OAuthFlowsObject;
263263
openIdConnectUrl?: string;
264264
'x-tokenName'?: string;
265+
266+
/**
267+
* SecuritySchemes Additional extension properties
268+
* @issue https://github.com/nestjs/swagger/issues/3179
269+
* @see https://swagger.io/docs/specification/v3_0/openapi-extensions/
270+
*/
271+
[extension: `x-${string}`]: any;
265272
}
266273

267274
export interface OAuthFlowsObject {

0 commit comments

Comments
 (0)