Skip to content

Commit b90c2bc

Browse files
committed
feat(specs): allow filtering transformations type
1 parent bbe5f57 commit b90c2bc

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

specs/ingestion/common/transformationParameters.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
type:
2+
name: type
3+
in: query
4+
description: Whether to filter the list of transformations by the type of transformation.
5+
required: false
6+
schema:
7+
$ref: './schemas/transformation.yml#/TransformationType'
8+
19
sort:
210
name: sort
311
in: query

specs/ingestion/paths/transformations/transformations.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ get:
1212
parameters:
1313
- $ref: '../../common/parameters.yml#/itemsPerPage'
1414
- $ref: '../../common/parameters.yml#/page'
15+
- $ref: '../../common/transformationParameters.yml#/type'
1516
- $ref: '../../common/transformationParameters.yml#/sort'
1617
- $ref: '../../common/parameters.yml#/order'
1718
responses:

tests/CTS/requests/ingestion/listTransformations.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@
55
"path": "/1/transformations",
66
"method": "GET"
77
}
8+
},
9+
{
10+
"testName": "allows filtering by type",
11+
"parameters": {
12+
"type":"noCode"
13+
},
14+
"request": {
15+
"path": "/1/transformations&type=noCode",
16+
"method": "GET"
17+
}
818
}
919
]

0 commit comments

Comments
 (0)