Skip to content

Commit

Permalink
fix(specs): required ingestion search params (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3516

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Aug 12, 2024
1 parent b73685a commit e0c7567
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ingestion/model/transformationSearch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 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.

export type TransformationSearch = {
transformationIDs?: string[];
transformationIDs: string[];
};
6 changes: 6 additions & 0 deletions packages/ingestion/src/ingestionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,12 @@ export function createIngestionClient({
);
}

if (!transformationSearch.transformationIDs) {
throw new Error(
'Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.'
);
}

const requestPath = '/1/transformations/search';
const headers: Headers = {};
const queryParameters: QueryParameters = {};
Expand Down

0 comments on commit e0c7567

Please sign in to comment.