diff --git a/src/shared/json-schema.mjs b/src/shared/json-schema.mjs index 7fa54a8c..98fdeaba 100644 --- a/src/shared/json-schema.mjs +++ b/src/shared/json-schema.mjs @@ -155,7 +155,7 @@ const getPropertySchema = (json, dotPath, document) => { else if (property === '') { return node } - else if (node.type === 'object') { + else if (node.type === 'object' || (node.type && node.type.includes && node.type.includes('object'))) { if (node.properties && node.properties[property]) { node = node.properties[property] } diff --git a/src/shared/modules.mjs b/src/shared/modules.mjs index 4c6a6231..5fa64c6a 100644 --- a/src/shared/modules.mjs +++ b/src/shared/modules.mjs @@ -106,7 +106,7 @@ function getProviderInterface(capability, module, extractProviderSchema = false) { "name": "parameters", "required": true, - "schema": schema// payload.properties.parameters + "schema": schema } ]