Update 'swagger.yaml'
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
test specifying input filename
This commit is contained in:
@@ -56,6 +56,10 @@ paths:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
infile:
|
||||
type: string
|
||||
description: Name of the json input file to utilise
|
||||
#default: "/tmp/input.json"
|
||||
worksheet-name:
|
||||
type: string
|
||||
description: Label for the worksheet created in the spreadsheet
|
||||
@@ -80,7 +84,7 @@ paths:
|
||||
function: export-xlsx
|
||||
input:
|
||||
files:
|
||||
- name: input.json
|
||||
- name: /tmp/input.json
|
||||
data: |
|
||||
jq(.input)
|
||||
worksheet-name: "TestSpreadsheet"
|
||||
@@ -91,7 +95,7 @@ paths:
|
||||
x-direktiv:
|
||||
cmds:
|
||||
- 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
|
||||
print: true
|
||||
- action: exec
|
||||
|
Reference in New Issue
Block a user