Skip to content

Commit 0827ed9

Browse files
authored
docs(external): fix route config test (#21745)
* docs(external): fix route config test * fix typo * fix :cue: fmt
1 parent 530d02d commit 0827ed9

File tree

1 file changed

+5
-6
lines changed
  • website/cue/reference/components/transforms

1 file changed

+5
-6
lines changed

website/cue/reference/components/transforms/route.cue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ components: transforms: route: {
100100
routing_to_multiple_components: {
101101
title: "Routing to multiple components"
102102
body: """
103-
The following is an example of how you can creates two routes that feed three downstream components.
103+
The following is an example of how you can create two routes that feed three downstream components.
104104
105105
It is worth noting that a single route can feed multiple downstream components.
106106
@@ -110,7 +110,7 @@ components: transforms: route: {
110110
inputs: [ some_source ]
111111
type: route
112112
route:
113-
foo-exists: exists(.foo)
113+
foo-exists: 'exists(.foo)'
114114
foo-doesnt-exist: '!exists(.foo)'
115115
remap-route-1:
116116
type: remap
@@ -140,13 +140,13 @@ components: transforms: route: {
140140
foo: X
141141
outputs:
142142
- extract_from: remap-route-1
143-
my-routes:
143+
conditions:
144144
- type: vrl
145145
source: |
146146
assert!(exists(.foo))
147147
assert_eq!(.route, "route 1")
148148
- extract_from: remap-route-3
149-
my-routes:
149+
conditions:
150150
- type: vrl
151151
source: |
152152
assert!(exists(.foo))
@@ -159,12 +159,11 @@ components: transforms: route: {
159159
bar: X
160160
outputs:
161161
- extract_from: remap-route-2
162-
my-routes:
162+
conditions:
163163
- type: vrl
164164
source: |
165165
assert!(!exists(.foo))
166166
assert_eq!(.route, "route 2")
167-
168167
```
169168
"""
170169
}

0 commit comments

Comments
 (0)