File tree Expand file tree Collapse file tree 3 files changed +39
-7
lines changed
specs/ingestion/common/schemas
tests/CTS/requests/ingestion Expand file tree Collapse file tree 3 files changed +39
-7
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,10 @@ TransformationTry:
153
153
properties :
154
154
code :
155
155
$ref : ' #/Code'
156
+ type :
157
+ $ref : ' #/TransformationType'
158
+ input :
159
+ $ref : ' #/TransformationInput'
156
160
sampleRecord :
157
161
description : The record to apply the given code to.
158
162
type : object
@@ -161,7 +165,8 @@ TransformationTry:
161
165
items :
162
166
$ref : ' ./authentication.yml#/AuthenticationCreate'
163
167
required :
164
- - code
168
+ - type
169
+ - input
165
170
- sampleRecord
166
171
167
172
TransformationTryResponse :
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
+ "testName" : " with legacy payload" ,
3
4
"parameters" : {
4
5
"code" : " foo" ,
5
6
"sampleRecord" : {
17
18
}
18
19
}
19
20
},
21
+ {
22
+ "parameters" : {
23
+ "type" : " code" ,
24
+ "input" : {"code" : " foo" },
25
+ "sampleRecord" : {
26
+ "bar" : " baz"
27
+ }
28
+ },
29
+ "request" : {
30
+ "path" : " /1/transformations/try" ,
31
+ "method" : " POST" ,
32
+ "body" : {
33
+ "type" : " code" ,
34
+ "input" : {"code" : " foo" },
35
+ "sampleRecord" : {
36
+ "bar" : " baz"
37
+ }
38
+ }
39
+ }
40
+ },
20
41
{
21
42
"testName" : " with authentications" ,
22
43
"parameters" : {
23
- "code" : " foo" ,
44
+ "type" : " code" ,
45
+ "input" : {"code" : " foo" },
24
46
"sampleRecord" : {
25
47
"bar" : " baz"
26
48
},
40
62
"path" : " /1/transformations/try" ,
41
63
"method" : " POST" ,
42
64
"body" : {
43
- "code" : " foo" ,
65
+ "type" : " code" ,
66
+ "input" : {"code" : " foo" },
44
67
"sampleRecord" : {
45
68
"bar" : " baz"
46
69
},
Original file line number Diff line number Diff line change 3
3
"parameters" : {
4
4
"transformationID" : " 6c02aeb1-775e-418e-870b-1faccd4b2c0f" ,
5
5
"transformationTry" : {
6
- "code" : " foo" ,
6
+ "type" : " code" ,
7
+ "input" : {"code" : " foo" },
7
8
"sampleRecord" : {
8
9
"bar" : " baz"
9
10
}
13
14
"path" : " /1/transformations/6c02aeb1-775e-418e-870b-1faccd4b2c0f/try" ,
14
15
"method" : " POST" ,
15
16
"body" : {
16
- "code" : " foo" ,
17
+ "type" : " code" ,
18
+ "input" : {"code" : " foo" },
17
19
"sampleRecord" : {
18
20
"bar" : " baz"
19
21
}
25
27
"parameters" : {
26
28
"transformationID" : " 6c02aeb1-775e-418e-870b-1faccd4b2c0f" ,
27
29
"transformationTry" : {
28
- "code" : " foo" ,
30
+ "type" : " code" ,
31
+ "input" : {"code" : " foo" },
29
32
"sampleRecord" : {
30
33
"bar" : " baz"
31
34
},
46
49
"path" : " /1/transformations/6c02aeb1-775e-418e-870b-1faccd4b2c0f/try" ,
47
50
"method" : " POST" ,
48
51
"body" : {
49
- "code" : " foo" ,
52
+ "type" : " code" ,
53
+ "input" : {"code" : " foo" },
50
54
"sampleRecord" : {
51
55
"bar" : " baz"
52
56
},
You can’t perform that action at this time.
0 commit comments