Skip to content

Commit bf33bdb

Browse files
authored
Merge pull request #3 from paulRbr/fix-outputs
Fix: use an expression map (names to runtime expressions) for outputs & req inputs
2 parents a52b481 + 9333676 commit bf33bdb

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

specification/v0/schema.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"$ref": "#/definitions/schema"
5353
},
5454
"outputs": {
55-
"$ref": "#/definitions/schema"
55+
"$ref": "#/definitions/expressionMap"
5656
},
5757
"steps": {
5858
"type": "array",
@@ -73,19 +73,25 @@
7373
"type": "string"
7474
},
7575
"outputs": {
76-
"$ref": "#/definitions/schema"
76+
"$ref": "#/definitions/expressionMap"
7777
},
7878
"request": {
7979
"type": "object",
8080
"properties": {
8181
"method": {
8282
"type": "string"
8383
},
84-
"query": {
85-
"$ref": "#/definitions/schema"
86-
},
8784
"url": {
8885
"type": "string"
86+
},
87+
"headers": {
88+
"$ref": "#/definitions/expressionMap"
89+
},
90+
"query": {
91+
"$ref": "#/definitions/expressionMap"
92+
},
93+
"body": {
94+
"$ref": "#/definitions/expressionMap"
8995
}
9096
}
9197
},
@@ -202,6 +208,14 @@
202208
}
203209
]
204210
},
211+
"expressionMap": {
212+
"type": "object",
213+
"description": "A map of names to runtime expressions.",
214+
"additionalProperties": {
215+
"type": "string",
216+
"description": "A runtime expression."
217+
}
218+
},
205219
"schema": {
206220
"allOf": [
207221
{

0 commit comments

Comments
 (0)