Skip to content

Commit c1da0ca

Browse files
fix(specs): nb_api_calls in getLogs response is optional (generated)
algolia/api-clients-automation#4142 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 9e2e0e9 commit c1da0ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/client_search/lib/src/model/log.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class Log {
1919
required this.ip,
2020
required this.queryHeaders,
2121
required this.sha1,
22-
required this.nbApiCalls,
22+
this.nbApiCalls,
2323
required this.processingTimeMs,
2424
this.index,
2525
this.queryParams,
@@ -65,7 +65,7 @@ final class Log {
6565

6666
/// Number of API requests.
6767
@JsonKey(name: r'nb_api_calls')
68-
final String nbApiCalls;
68+
final String? nbApiCalls;
6969

7070
/// Processing time for the query in milliseconds. This doesn't include latency due to the network.
7171
@JsonKey(name: r'processing_time_ms')

packages/client_search/lib/src/model/log.g.dart

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)