Debian Codegraph @

examples/prism-dataweave.html

raw symbols SCIP
1 <h2>Full example</h2>
2 <pre><code>
3 %dw 2.0
4 input payalod application/json
5 ns ns0 http://localhost.com
6 var a = 123
7 type T = String
8 fun test(a: Number) = a + 123
9 output application/json
10 ---
11 {
12 // This is a comment
13 /**
14 This is a multiline comment
15 **/
16 name: payload.name,
17 string: "this",
18 'another string': true,
19 "regex": /123/,
20 fc: test(1),
21 "dates": |12-12-2020-T12:00:00|,
22 number: 123,
23 "null": null,
24
25 a: {} match {
26 case is {} -> foo.name
27 },
28 b: {} update {
29 case name at .user.name -> "123"
30 },
31 stringMultiLine: "This is a multiline
32 string
33 ",
34 a: if( !true > 2) a else 2,
35 b: do {
36 {}
37 }
38 }
39 </code></pre>