This commit is contained in:
18
swagger.yaml
18
swagger.yaml
@@ -68,7 +68,7 @@ paths:
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
worksheet-name:
|
||||
name:
|
||||
type: string
|
||||
description: Label for the worksheet created in the spreadsheet
|
||||
default: "Sheet1"
|
||||
@@ -98,12 +98,11 @@ paths:
|
||||
input:
|
||||
out-filename: example.xlsx
|
||||
sheets:
|
||||
- sheet:
|
||||
worksheet-name: "TestSpreadsheet"
|
||||
input-file:
|
||||
- name: input.json
|
||||
data: |
|
||||
jq(.input)
|
||||
- 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,8 +112,7 @@ paths:
|
||||
input:
|
||||
out-filename: example.xlsx
|
||||
sheets:
|
||||
- sheet:
|
||||
worksheet-name: "TestSpreadsheet"
|
||||
- name: "TestSpreadsheet"
|
||||
input-file:
|
||||
- name: input.json
|
||||
data: |
|
||||
@@ -127,7 +125,7 @@ paths:
|
||||
- action: foreach
|
||||
loop: .Sheets
|
||||
#exec: /bin/json2excel -inputJson {{- if eq (deref .Infile) "" }} "input.json" {{- else }} {{ .Infile }} {{- end }} -worksheetName "{{ .WorksheetName }}" -outputFilename '{{ .OutFilename }}'
|
||||
exec: /bin/json2excel -inputJson {{- if eq (deref .Item.Infile) "" }} "input.json" {{- else }} {{ .Item.Infile }} {{- end }} -worksheetName "{{ .Item.WorksheetName }}" -outputFilename '{{ .OutFilename }}'
|
||||
exec: /bin/json2excel -inputJson {{- if eq (deref .Item.Infile) "" }} "input.json" {{- else }} {{ .Item.Infile }} {{- end }} -worksheetName "{{ .Item.Name }}" -outputFilename '{{ .OutFilename }}'
|
||||
silent: false
|
||||
print: true
|
||||
- action: exec
|
||||
|
Reference in New Issue
Block a user