@@ -29,6 +29,9 @@ exports:
29
29
- lang : c++
30
30
source : |
31
31
return pdk::reflectJsonObjectHost(std::move(input));
32
+ - lang : python
33
+ source : |
34
+ return reflect_json_object_host(input)
32
35
input :
33
36
contentType : application/json
34
37
$ref : " #/components/schemas/KitchenSinkObject"
@@ -63,6 +66,9 @@ exports:
63
66
- lang : c++
64
67
source : |
65
68
return pdk::reflectUtf8StringHost(std::move(input));
69
+ - lang : python
70
+ source : |
71
+ return reflect_utf8_string_host(input)
66
72
input :
67
73
type : string
68
74
description : The input string
@@ -99,6 +105,9 @@ exports:
99
105
- lang : c++
100
106
source : |
101
107
return pdk::reflectByteBufferHost(std::move(input));
108
+ - lang : python
109
+ source : |
110
+ return reflect_byte_buffer_host(input)
102
111
input :
103
112
contentType : application/x-binary
104
113
type : buffer
@@ -137,6 +146,9 @@ exports:
137
146
- lang : c++
138
147
source : |
139
148
return pdk::noInputWithOutputHost();
149
+ - lang : python
150
+ source : |
151
+ return no_input_with_output_host()
140
152
141
153
withInputNoOutput :
142
154
description : a function that takes input, but returns no output
@@ -166,6 +178,9 @@ exports:
166
178
- lang : c++
167
179
source : |
168
180
return pdk::withInputNoOutputHost(input);
181
+ - lang : python
182
+ source : |
183
+ return with_input_no_output_host(input)
169
184
170
185
noInputNoOutput :
171
186
description : a function that takes no input, and returns no output
@@ -189,6 +204,9 @@ exports:
189
204
source : |
190
205
pdk::noInputNoOutputHost();
191
206
return std::expected<void, pdk::Error>();
207
+ - lang : python
208
+ source : |
209
+ return no_input_no_output_host()
192
210
193
211
helloToGoodbyeReplacement :
194
212
description : a function that should replace `Hello` with `Goodbye` within a byte buffer field on KitchenSinkObject
@@ -253,6 +271,9 @@ exports:
253
271
input.aBuffer = std::vector<uint8_t>(pString, pString + tomodify.size());
254
272
}
255
273
return std::make_unique<pdk::KitchenSinkObject>(std::move(input));
274
+ - lang : python
275
+ source : |
276
+ input.aBuffer = input.aBuffer.replace(b"Hello", b"Goodbye"); return input
256
277
257
278
imports :
258
279
reflectJsonObjectHost :
0 commit comments