Skip to content

Commit

Permalink
fix: fix crash when referencing non-existing security scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Feb 8, 2018
1 parent 73b2126 commit 1f7fc44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/models/SecurityRequirement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class SecurityRequirementModel {

if (!scheme) {
console.warn(`Non existing security scheme referenced: ${id}. Skipping`);
return null;
return undefined;
}

return {
Expand Down

0 comments on commit 1f7fc44

Please sign in to comment.