Skip to content

Commit fbb9e2f

Browse files
authored
Merge pull request #840 from ricardozanini/issue-818
Fix #818 - Merge REST and OPENAPI operations, introduce HTTP functions
2 parents 33772ba + fd09038 commit fbb9e2f

File tree

6 files changed

+220
-177
lines changed

6 files changed

+220
-177
lines changed

.ci/validation/package-lock.json

Lines changed: 22 additions & 149 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.ci/validation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "CNCF Serverless Workflow Specification",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"@types/jest": "^29.5.10",
14+
"@types/jest": "^29.5.12",
1515
"ts-jest": "^29.1.1",
1616
"ts-node": "^10.9.1",
1717
"typescript": "^5.3.2"

.github/workflows/schema-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
node-version: [21.x]
4545

4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- name: Use Node.js ${{ matrix.node-version }}
49-
uses: actions/setup-node@v3
49+
uses: actions/setup-node@v4
5050
with:
5151
node-version: ${{ matrix.node-version }}
5252
cache: 'npm'

examples/curl.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "curlgoogle",
3+
"version": "1.0.0",
4+
"specVersion": "0.8",
5+
"description": "Curl Google",
6+
"start": "curl",
7+
"functions": [
8+
{
9+
"name": "curl-google",
10+
"type": "http",
11+
"operation": {
12+
"method": "GET",
13+
"uri": "https://www.google.com/search?q={query}"
14+
}
15+
}
16+
],
17+
"states": [
18+
{
19+
"name": "curl",
20+
"type": "operation",
21+
"actions": [
22+
{
23+
"name": "do-curl",
24+
"functionRef": {
25+
"refName": "curl-google",
26+
"arguments": {
27+
"query": "${ .query }"
28+
}
29+
}
30+
}
31+
],
32+
"end": true
33+
}
34+
]
35+
}

0 commit comments

Comments
 (0)