From a49bb1d60aa212811d15f5b560f9472f40ff36b1 Mon Sep 17 00:00:00 2001 From: christina-gagnon-sp <97126282+christina-gagnon-sp@users.noreply.github.com> Date: Mon, 15 Jul 2024 14:05:54 -0700 Subject: [PATCH] Fixed prescript.js to handle v3 workflowTrigger types --- sdk-resources/prescript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk-resources/prescript.js b/sdk-resources/prescript.js index 188e97f79..fc08d12ca 100644 --- a/sdk-resources/prescript.js +++ b/sdk-resources/prescript.js @@ -41,7 +41,7 @@ const fixFiles = function (myArray) { fileOut = []; } - if (file.includes(path.join("schemas","WorkflowTrigger.yaml"))) { + if (file.includes(path.join("schemas","WorkflowTrigger.yaml")) || file.includes(path.join("schemas","workflows","WorkflowTrigger.yaml"))) { for (let line of rawDataArra) { if (line.includes('oneOf')) { line = line.replaceAll("oneOf:", "type: object")