diff --git a/specs/ingestion/common/schemas/transformation.yml b/specs/ingestion/common/schemas/transformation.yml index f5d24c46e42..211737b9552 100644 --- a/specs/ingestion/common/schemas/transformation.yml +++ b/specs/ingestion/common/schemas/transformation.yml @@ -107,8 +107,6 @@ TransformationCreate: $ref: '#/AuthenticationIDs' required: - name - - type - - input TransformationCreateResponse: type: object @@ -153,6 +151,10 @@ TransformationTry: properties: code: $ref: '#/Code' + type: + $ref: '#/TransformationType' + input: + $ref: '#/TransformationInput' sampleRecord: description: The record to apply the given code to. type: object @@ -161,7 +163,6 @@ TransformationTry: items: $ref: './authentication.yml#/AuthenticationCreate' required: - - code - sampleRecord TransformationTryResponse: diff --git a/tests/CTS/requests/ingestion/tryTransformation.json b/tests/CTS/requests/ingestion/tryTransformation.json index bba7758a217..59610e25757 100644 --- a/tests/CTS/requests/ingestion/tryTransformation.json +++ b/tests/CTS/requests/ingestion/tryTransformation.json @@ -1,7 +1,8 @@ [ { "parameters": { - "code": "foo", + "type": "code", + "input": {"code": "foo"}, "sampleRecord": { "bar": "baz" } @@ -10,7 +11,8 @@ "path": "/1/transformations/try", "method": "POST", "body": { - "code": "foo", + "type": "code", + "input": {"code": "foo"}, "sampleRecord": { "bar": "baz" } @@ -20,7 +22,8 @@ { "testName": "with authentications", "parameters": { - "code": "foo", + "type": "code", + "input": {"code": "foo"}, "sampleRecord": { "bar": "baz" }, @@ -40,7 +43,8 @@ "path": "/1/transformations/try", "method": "POST", "body": { - "code": "foo", + "type": "code", + "input": {"code": "foo"}, "sampleRecord": { "bar": "baz" }, diff --git a/tests/CTS/requests/ingestion/tryTransformationBeforeUpdate.json b/tests/CTS/requests/ingestion/tryTransformationBeforeUpdate.json index 5ac39434f5c..bc74c740ab1 100644 --- a/tests/CTS/requests/ingestion/tryTransformationBeforeUpdate.json +++ b/tests/CTS/requests/ingestion/tryTransformationBeforeUpdate.json @@ -3,7 +3,8 @@ "parameters": { "transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "transformationTry": { - "code": "foo", + "type": "code", + "input": {"code": "foo"}, "sampleRecord": { "bar": "baz" } @@ -13,7 +14,8 @@ "path": "/1/transformations/6c02aeb1-775e-418e-870b-1faccd4b2c0f/try", "method": "POST", "body": { - "code": "foo", + "type": "code", + "input": {"code": "foo"}, "sampleRecord": { "bar": "baz" } @@ -25,7 +27,8 @@ "parameters": { "transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "transformationTry": { - "code": "foo", + "type": "code", + "input": {"code": "foo"}, "sampleRecord": { "bar": "baz" }, @@ -46,7 +49,8 @@ "path": "/1/transformations/6c02aeb1-775e-418e-870b-1faccd4b2c0f/try", "method": "POST", "body": { - "code": "foo", + "type": "code", + "input": {"code": "foo"}, "sampleRecord": { "bar": "baz" },