account for integer type from JSON schema

This commit is contained in:
Martin McKeaveney 2021-12-08 10:14:30 +00:00
parent 5d4fb2e7c7
commit f40fe2e4ed
3 changed files with 6 additions and 2 deletions

View File

@ -241,7 +241,7 @@
value={inputData[key]}
/>
</CodeEditorModal>
{:else if value.type === "string" || value.type === "number"}
{:else if value.type === "string" || value.type === "number" || value.type === "integer"}
{#if isTestModal}
<ModalBindableInput
title={value.title}

View File

@ -65,6 +65,10 @@ exports.buildSchema = async ctx => {
let automation = await db.get(webhook.action.target)
const autoOutputs = automation.definition.trigger.schema.outputs
let properties = webhook.bodySchema.properties
// reset webhook outputs
autoOutputs.properties = {
body: autoOutputs.properties.body,
}
for (let prop of Object.keys(properties)) {
autoOutputs.properties[prop] = {
type: properties[prop].type,

View File

@ -450,7 +450,7 @@ module OracleModule {
})
return lastRow.rows
} else {
return [{ [ operation.toLowerCase() ]: true }]
return [{ [operation.toLowerCase()]: true }]
}
}
}