Skip to content

Commit fb6b96c

Browse files
feat: add new failing example
Signed-off-by: Matthias Pichler <[email protected]>
1 parent b79f9a3 commit fb6b96c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

examples/star-wars-homeworld.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# yaml-language-server: $schema=https://serverlessworkflow.io/schemas/1.0.0-alpha2/workflow.yaml
2+
document:
3+
dsl: 1.0.0-alpha2
4+
namespace: examples
5+
name: star-wars-homeplanet
6+
version: 1.0.0-alpha2
7+
input:
8+
schema:
9+
format: json
10+
document:
11+
type: object
12+
required:
13+
- id
14+
properties:
15+
id:
16+
type: integer
17+
description: The id of the star wars character to get
18+
minimum: 1
19+
do:
20+
- getStarWarsCharacter:
21+
call: http
22+
with:
23+
method: get
24+
endpoint: https://swapi.dev/api/people/{id}
25+
output: response
26+
export:
27+
as:
28+
homeworld: ${ .content.homeworld }
29+
- getStarWarsHomeworld:
30+
call: http
31+
with:
32+
method: get
33+
endpoint: ${ $context.homeworld }

0 commit comments

Comments
 (0)