Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions specs/ingestion/common/schemas/transformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ TransformationCreate:
$ref: '#/AuthenticationIDs'
required:
- name
- type
- input

TransformationCreateResponse:
type: object
Expand Down Expand Up @@ -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
Expand All @@ -161,7 +163,6 @@ TransformationTry:
items:
$ref: './authentication.yml#/AuthenticationCreate'
required:
- code
- sampleRecord

TransformationTryResponse:
Expand Down
12 changes: 8 additions & 4 deletions tests/CTS/requests/ingestion/tryTransformation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[
{
"parameters": {
"code": "foo",
"type": "code",
"input": {"code": "foo"},
"sampleRecord": {
"bar": "baz"
}
Expand All @@ -10,7 +11,8 @@
"path": "/1/transformations/try",
"method": "POST",
"body": {
"code": "foo",
"type": "code",
"input": {"code": "foo"},
"sampleRecord": {
"bar": "baz"
}
Expand All @@ -20,7 +22,8 @@
{
"testName": "with authentications",
"parameters": {
"code": "foo",
"type": "code",
"input": {"code": "foo"},
"sampleRecord": {
"bar": "baz"
},
Expand All @@ -40,7 +43,8 @@
"path": "/1/transformations/try",
"method": "POST",
"body": {
"code": "foo",
"type": "code",
"input": {"code": "foo"},
"sampleRecord": {
"bar": "baz"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"parameters": {
"transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"transformationTry": {
"code": "foo",
"type": "code",
"input": {"code": "foo"},
"sampleRecord": {
"bar": "baz"
}
Expand All @@ -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"
}
Expand All @@ -25,7 +27,8 @@
"parameters": {
"transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"transformationTry": {
"code": "foo",
"type": "code",
"input": {"code": "foo"},
"sampleRecord": {
"bar": "baz"
},
Expand All @@ -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"
},
Expand Down