diff --git a/build/app/restapi/embedded_spec.go b/build/app/restapi/embedded_spec.go index 86ce76c..2564af7 100644 --- a/build/app/restapi/embedded_spec.go +++ b/build/app/restapi/embedded_spec.go @@ -160,11 +160,11 @@ func init() { }, "x-direktiv-examples": [ { - "content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx\n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.input)", + "content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx\n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.input)", "title": "Basic" }, { - "content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx \n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.array | {input: . } | tostring ) ", + "content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx \n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.array | {input: . } | tostring ) ", "title": "Use jq to add a parent key 'input' containing array of objects" } ], @@ -324,11 +324,11 @@ func init() { }, "x-direktiv-examples": [ { - "content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx\n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.input)", + "content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx\n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.input)", "title": "Basic" }, { - "content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx \n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.array | {input: . } | tostring ) ", + "content": "- id: export-xlsx\n type: action\n action:\n function: export-xlsx\n input: \n out-filename: example.xlsx \n sheets:\n - sheet:\n worksheet-name: \"TestSpreadsheet\"\n input-file:\n - name: input.json\n data: |\n jq(.array | {input: . } | tostring ) ", "title": "Use jq to add a parent key 'input' containing array of objects" } ], diff --git a/readme.md b/readme.md index faf3575..67adffe 100644 --- a/readme.md +++ b/readme.md @@ -33,12 +33,12 @@ functions: input: out-filename: example.xlsx sheets: - - sheet: - worksheet-name: "TestSpreadsheet" - input-file: - - name: input.json - data: | - jq(.input) + - sheet: + worksheet-name: "TestSpreadsheet" + input-file: + - name: input.json + data: | + jq(.input) ``` #### Use jq to add a parent key 'input' containing array of objects ```yaml @@ -49,12 +49,12 @@ functions: input: out-filename: example.xlsx sheets: - - sheet: - worksheet-name: "TestSpreadsheet" - input-file: - - name: input.json - data: | - jq(.array | {input: . } | tostring ) + - sheet: + worksheet-name: "TestSpreadsheet" + input-file: + - name: input.json + data: | + jq(.array | {input: . } | tostring ) ``` ### Secrets diff --git a/swagger.yaml b/swagger.yaml index 47b8d16..1090c00 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -98,12 +98,12 @@ paths: input: out-filename: example.xlsx sheets: - - sheet: - worksheet-name: "TestSpreadsheet" - input-file: - - name: input.json - data: | - jq(.input) + - sheet: + worksheet-name: "TestSpreadsheet" + input-file: + - name: input.json + data: | + jq(.input) - title: Use jq to add a parent key 'input' containing array of objects content: |- - id: export-xlsx @@ -113,12 +113,12 @@ paths: input: out-filename: example.xlsx sheets: - - sheet: - worksheet-name: "TestSpreadsheet" - input-file: - - name: input.json - data: | - jq(.array | {input: . } | tostring ) + - sheet: + worksheet-name: "TestSpreadsheet" + input-file: + - name: input.json + data: | + jq(.array | {input: . } | tostring ) x-direktiv-secrets: - name: export-xlsxSecret description: This is a secret value