Skip to content

Commit

Permalink
fix: Support type: [null, ...] in getPropertySchema
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacivita committed Jun 6, 2024
1 parent feddfbd commit e1380a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/json-schema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/modules.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function getProviderInterface(capability, module, extractProviderSchema = false)
{
"name": "parameters",
"required": true,
"schema": schema// payload.properties.parameters
"schema": schema
}
]

Expand Down

0 comments on commit e1380a5

Please sign in to comment.