Skip to content

Commit 6031284

Browse files
authored
feat(specs): update try transformation specs for no-code (#4974)
1 parent 680d82c commit 6031284

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

specs/ingestion/common/schemas/transformation.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ TransformationCreate:
107107
$ref: '#/AuthenticationIDs'
108108
required:
109109
- name
110-
- type
111-
- input
112110

113111
TransformationCreateResponse:
114112
type: object
@@ -153,6 +151,10 @@ TransformationTry:
153151
properties:
154152
code:
155153
$ref: '#/Code'
154+
type:
155+
$ref: '#/TransformationType'
156+
input:
157+
$ref: '#/TransformationInput'
156158
sampleRecord:
157159
description: The record to apply the given code to.
158160
type: object
@@ -161,7 +163,6 @@ TransformationTry:
161163
items:
162164
$ref: './authentication.yml#/AuthenticationCreate'
163165
required:
164-
- code
165166
- sampleRecord
166167

167168
TransformationTryResponse:

tests/CTS/requests/ingestion/tryTransformation.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[
22
{
33
"parameters": {
4-
"code": "foo",
4+
"type": "code",
5+
"input": {"code": "foo"},
56
"sampleRecord": {
67
"bar": "baz"
78
}
@@ -10,7 +11,8 @@
1011
"path": "/1/transformations/try",
1112
"method": "POST",
1213
"body": {
13-
"code": "foo",
14+
"type": "code",
15+
"input": {"code": "foo"},
1416
"sampleRecord": {
1517
"bar": "baz"
1618
}
@@ -20,7 +22,8 @@
2022
{
2123
"testName": "with authentications",
2224
"parameters": {
23-
"code": "foo",
25+
"type": "code",
26+
"input": {"code": "foo"},
2427
"sampleRecord": {
2528
"bar": "baz"
2629
},
@@ -40,7 +43,8 @@
4043
"path": "/1/transformations/try",
4144
"method": "POST",
4245
"body": {
43-
"code": "foo",
46+
"type": "code",
47+
"input": {"code": "foo"},
4448
"sampleRecord": {
4549
"bar": "baz"
4650
},

tests/CTS/requests/ingestion/tryTransformationBeforeUpdate.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"parameters": {
44
"transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
55
"transformationTry": {
6-
"code": "foo",
6+
"type": "code",
7+
"input": {"code": "foo"},
78
"sampleRecord": {
89
"bar": "baz"
910
}
@@ -13,7 +14,8 @@
1314
"path": "/1/transformations/6c02aeb1-775e-418e-870b-1faccd4b2c0f/try",
1415
"method": "POST",
1516
"body": {
16-
"code": "foo",
17+
"type": "code",
18+
"input": {"code": "foo"},
1719
"sampleRecord": {
1820
"bar": "baz"
1921
}
@@ -25,7 +27,8 @@
2527
"parameters": {
2628
"transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
2729
"transformationTry": {
28-
"code": "foo",
30+
"type": "code",
31+
"input": {"code": "foo"},
2932
"sampleRecord": {
3033
"bar": "baz"
3134
},
@@ -46,7 +49,8 @@
4649
"path": "/1/transformations/6c02aeb1-775e-418e-870b-1faccd4b2c0f/try",
4750
"method": "POST",
4851
"body": {
49-
"code": "foo",
52+
"type": "code",
53+
"input": {"code": "foo"},
5054
"sampleRecord": {
5155
"bar": "baz"
5256
},

0 commit comments

Comments
 (0)