Update 'swagger.yaml'
Some checks reported errors
continuous-integration/drone/push Build was killed

test specifying input filename
This commit is contained in:
2023-02-10 16:03:36 +11:00
parent 359361b645
commit 0e658c6360

View File

@@ -56,6 +56,10 @@ paths:
schema: schema:
type: object type: object
properties: properties:
infile:
type: string
description: Name of the json input file to utilise
#default: "/tmp/input.json"
worksheet-name: worksheet-name:
type: string type: string
description: Label for the worksheet created in the spreadsheet description: Label for the worksheet created in the spreadsheet
@@ -80,7 +84,7 @@ paths:
function: export-xlsx function: export-xlsx
input: input:
files: files:
- name: input.json - name: /tmp/input.json
data: | data: |
jq(.input) jq(.input)
worksheet-name: "TestSpreadsheet" worksheet-name: "TestSpreadsheet"
@@ -91,7 +95,7 @@ paths:
x-direktiv: x-direktiv:
cmds: cmds:
- action: exec - action: exec
exec: /bin/json2excel -inputJson input.json -worksheetName "{{ .WorksheetName }}" -outputFilename '{{ .OutFilename }}' exec: /bin/json2excel -inputJson {{- if eq (deref .Infile) "" }} "/tmp/input.json" {{- else }} {{ .Infile }} {{- end }} input.json -worksheetName "{{ .WorksheetName }}" -outputFilename '{{ .OutFilename }}'
silent: false silent: false
print: true print: true
- action: exec - action: exec