account for integer type from JSON schema

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

View File

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

View File

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

View File

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