Skip to content

Commit 942a38a

Browse files
author
uid10804
committed
fix(server): fix missing property initialization in swagger spec
1 parent 160433c commit 942a38a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/server/src/specifications/swagger/swaggerspec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ export class SwaggerSpec {
391391
};
392392

393393
addAuthentication = (specificaton: Spec, auth: ApiKeySecurity) => {
394+
specificaton.securityDefinitions = {};
394395
const spec = Object.assign(specificaton.securityDefinitions, auth);
395396
return spec;
396397
};

0 commit comments

Comments
 (0)