Skip to content

Commit

Permalink
fix(normalizeSwagger): fix regression in swagger normalization
Browse files Browse the repository at this point in the history
Regression was introduced in 067229e.

Refs swagger-api/swagger-ui#7771
  • Loading branch information
char0n committed Jan 19, 2022
1 parent e051801 commit 1f9db2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function normalizeSwagger(parsedSpec) {
// eslint-disable-next-line no-restricted-syntax, guard-for-in
for (const method in path) {
const operation = path[method];
if (path == null || !['object', 'function'].includes(typeof path)) {
if (operation == null || !['object', 'function'].includes(typeof operation)) {
continue; // eslint-disable-line no-continue
}

Expand Down

0 comments on commit 1f9db2b

Please sign in to comment.