Skip to content

Commit

Permalink
fix(DocumentsApi): remove undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sfxcode committed Aug 28, 2023
1 parent ab4ff9e commit 0df72a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/runtime/api/apis/DocumentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* An open source search engine for building delightful search experiences.
*
* The version of the OpenAPI document: 0.24.0
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down Expand Up @@ -72,6 +72,7 @@ import {
UpdateDocumentsUpdateDocumentsParametersParameterFromJSON,
UpdateDocumentsUpdateDocumentsParametersParameterToJSON,
} from '../models';
import {removeUndefined} from "../util/utils";

export interface DeleteDocumentRequest {
collectionName: string;
Expand Down Expand Up @@ -168,7 +169,7 @@ export interface UpsertSearchSynonymRequest {
}

/**
*
*
*/
export class DocumentsApi extends runtime.BaseAPI {

Expand Down Expand Up @@ -714,10 +715,10 @@ export class DocumentsApi extends runtime.BaseAPI {
throw new runtime.RequiredError('searchParameters','Required parameter requestParameters.searchParameters was null or undefined when calling searchCollection.');
}

const queryParameters: any = {};
let queryParameters: any = {};

if (requestParameters.searchParameters !== undefined) {
queryParameters['searchParameters'] = requestParameters.searchParameters;
queryParameters = removeUndefined(SearchParametersToJSON(requestParameters.searchParameters));
}

const headerParameters: runtime.HTTPHeaders = {};
Expand Down

0 comments on commit 0df72a6

Please sign in to comment.