diff --git a/lib/utils/schemaAndComponentJsonBuilder.js b/lib/utils/schemaAndComponentJsonBuilder.js index cbfe9bd..bf265d0 100644 --- a/lib/utils/schemaAndComponentJsonBuilder.js +++ b/lib/utils/schemaAndComponentJsonBuilder.js @@ -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; }