Skip to content

Commit

Permalink
fix(specs): built-in ops accept also int (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
3 people committed Jul 31, 2024
1 parent 8503c3e commit ba63f99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/client-search/model/builtInOperation.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// 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.

import type { BuiltInOperationType } from './builtInOperationType';
import type { BuiltInOperationValue } from './builtInOperationValue';

/**
* Update to perform on the attribute.
*/
export type BuiltInOperation = {
_operation: BuiltInOperationType;

/**
* Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
*/
value: string;
value: BuiltInOperationValue;
};
3 changes: 3 additions & 0 deletions packages/client-search/model/builtInOperationValue.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// 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 BuiltInOperationValue = number | string;
1 change: 1 addition & 0 deletions packages/client-search/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export * from './browseParamsObject';
export * from './browseResponse';
export * from './builtInOperation';
export * from './builtInOperationType';
export * from './builtInOperationValue';
export * from './condition';
export * from './consequence';
export * from './consequenceHide';
Expand Down

0 comments on commit ba63f99

Please sign in to comment.