Skip to content

Commit 1f9db2b

Browse files
committed
fix(normalizeSwagger): fix regression in swagger normalization
Regression was introduced in 067229e. Refs swagger-api/swagger-ui#7771
1 parent e051801 commit 1f9db2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export function normalizeSwagger(parsedSpec) {
143143
// eslint-disable-next-line no-restricted-syntax, guard-for-in
144144
for (const method in path) {
145145
const operation = path[method];
146-
if (path == null || !['object', 'function'].includes(typeof path)) {
146+
if (operation == null || !['object', 'function'].includes(typeof operation)) {
147147
continue; // eslint-disable-line no-continue
148148
}
149149

0 commit comments

Comments
 (0)