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
Update example
This commit is contained in:
16
swagger.yaml
16
swagger.yaml
@@ -68,9 +68,6 @@ paths:
|
|||||||
infile:
|
infile:
|
||||||
type: string
|
type: string
|
||||||
description: Name of the json input file to utilise
|
description: Name of the json input file to utilise
|
||||||
in-data:
|
|
||||||
type: object
|
|
||||||
description: json input to convert to spreadsheet
|
|
||||||
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
|
||||||
@@ -87,7 +84,7 @@ paths:
|
|||||||
type: knative-workflow
|
type: knative-workflow
|
||||||
x-direktiv-examples:
|
x-direktiv-examples:
|
||||||
# ADD MORE EXAMPLES HERE
|
# ADD MORE EXAMPLES HERE
|
||||||
- title: Rely on Direktiv to create input file
|
- title: Basic
|
||||||
content: |-
|
content: |-
|
||||||
- id: export-xlsx
|
- id: export-xlsx
|
||||||
type: action
|
type: action
|
||||||
@@ -100,16 +97,19 @@ paths:
|
|||||||
jq(.input)
|
jq(.input)
|
||||||
worksheet-name: "TestSpreadsheet"
|
worksheet-name: "TestSpreadsheet"
|
||||||
out-filename: example.xlsx
|
out-filename: example.xlsx
|
||||||
- title: Use function to create input file
|
- title: Use jq to add a parent key 'input' containing array of objects
|
||||||
content: |-
|
content: |-
|
||||||
- id: export-xlsx
|
- id: export-xlsx
|
||||||
type: action
|
type: action
|
||||||
action:
|
action:
|
||||||
function: export-xlsx
|
function: export-xlsx
|
||||||
input:
|
input:
|
||||||
|
files:
|
||||||
|
- name: input.json
|
||||||
|
data: |
|
||||||
|
jq(.array | {input: . } | tostring )
|
||||||
worksheet-name: "TestSpreadsheet"
|
worksheet-name: "TestSpreadsheet"
|
||||||
out-filename: example.xlsx
|
out-filename: example.xlsx
|
||||||
in-data: jq(.array | tostring)
|
|
||||||
x-direktiv-secrets:
|
x-direktiv-secrets:
|
||||||
- name: export-xlsxSecret
|
- name: export-xlsxSecret
|
||||||
description: This is a secret value
|
description: This is a secret value
|
||||||
|
Reference in New Issue
Block a user