Skip to content

Commit

Permalink
check if operation is object
Browse files Browse the repository at this point in the history
  • Loading branch information
shulkaolka committed Jun 10, 2024
1 parent dc8c3eb commit 2d36220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/schemaAndComponentJsonBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function schemaBuilder(api, componentJson, existingNames, outputDir) {
}

_.forOwn(operations, async (operation, method) => {
if (method === "parameters") {
if (method === "parameters" || !(operation instanceof Object)) {
return;
}

Expand Down

0 comments on commit 2d36220

Please sign in to comment.