Skip to content

Commit e0c7567

Browse files
fix(specs): required ingestion search params (generated)
algolia/api-clients-automation#3516 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent b73685a commit e0c7567

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

33
export type TransformationSearch = {
4-
transformationIDs?: string[];
4+
transformationIDs: string[];
55
};

packages/ingestion/src/ingestionClient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,6 +2401,12 @@ export function createIngestionClient({
24012401
);
24022402
}
24032403

2404+
if (!transformationSearch.transformationIDs) {
2405+
throw new Error(
2406+
'Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.'
2407+
);
2408+
}
2409+
24042410
const requestPath = '/1/transformations/search';
24052411
const headers: Headers = {};
24062412
const queryParameters: QueryParameters = {};

0 commit comments

Comments
 (0)