Skip to content

Commit cee0f43

Browse files
algolia-botFluf22
andcommitted
fix(clients): processingTimeMS should be optional (generated)
algolia/api-clients-automation#5004 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent c548244 commit cee0f43

22 files changed

+55
-44
lines changed

packages/algoliasearch/lib/src/model/base_search_response.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
3030
this.message,
3131
this.nbSortedHits,
3232
this.parsedQuery,
33-
required this.processingTimeMS,
33+
this.processingTimeMS,
3434
this.processingTimingsMS,
3535
this.queryAfterRemoval,
3636
this.redirect,
@@ -112,7 +112,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
112112

113113
/// Time the server took to process the request, in milliseconds.
114114
@JsonKey(name: r'processingTimeMS')
115-
final int processingTimeMS;
115+
final int? processingTimeMS;
116116

117117
/// Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
118118
@JsonKey(name: r'processingTimingsMS')

packages/algoliasearch/lib/src/model/base_search_response.g.dart

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

packages/algoliasearch/lib/src/model/browse_response.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class BrowseResponse {
3030
this.message,
3131
this.nbSortedHits,
3232
this.parsedQuery,
33-
required this.processingTimeMS,
33+
this.processingTimeMS,
3434
this.processingTimingsMS,
3535
this.queryAfterRemoval,
3636
this.redirect,
@@ -119,7 +119,7 @@ final class BrowseResponse {
119119

120120
/// Time the server took to process the request, in milliseconds.
121121
@JsonKey(name: r'processingTimeMS')
122-
final int processingTimeMS;
122+
final int? processingTimeMS;
123123

124124
/// Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
125125
@JsonKey(name: r'processingTimingsMS')

packages/algoliasearch/lib/src/model/browse_response.g.dart

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

packages/algoliasearch/lib/src/model/recommendations_results.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class RecommendationsResults {
2929
this.message,
3030
this.nbSortedHits,
3131
this.parsedQuery,
32-
required this.processingTimeMS,
32+
this.processingTimeMS,
3333
this.processingTimingsMS,
3434
this.queryAfterRemoval,
3535
this.redirect,
@@ -115,7 +115,7 @@ final class RecommendationsResults {
115115

116116
/// Time the server took to process the request, in milliseconds.
117117
@JsonKey(name: r'processingTimeMS')
118-
final int processingTimeMS;
118+
final int? processingTimeMS;
119119

120120
/// Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
121121
@JsonKey(name: r'processingTimingsMS')

packages/algoliasearch/lib/src/model/recommendations_results.g.dart

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

packages/algoliasearch/lib/src/model/search_response.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class SearchResponse {
3030
this.message,
3131
this.nbSortedHits,
3232
this.parsedQuery,
33-
required this.processingTimeMS,
33+
this.processingTimeMS,
3434
this.processingTimingsMS,
3535
this.queryAfterRemoval,
3636
this.redirect,
@@ -118,7 +118,7 @@ final class SearchResponse {
118118

119119
/// Time the server took to process the request, in milliseconds.
120120
@JsonKey(name: r'processingTimeMS')
121-
final int processingTimeMS;
121+
final int? processingTimeMS;
122122

123123
/// Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
124124
@JsonKey(name: r'processingTimingsMS')

packages/algoliasearch/lib/src/model/search_response.g.dart

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

packages/client_composition/lib/src/model/base_search_response.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
3030
this.message,
3131
this.nbSortedHits,
3232
this.parsedQuery,
33-
required this.processingTimeMS,
33+
this.processingTimeMS,
3434
this.processingTimingsMS,
3535
this.queryAfterRemoval,
3636
this.redirect,
@@ -112,7 +112,7 @@ final class BaseSearchResponse extends DelegatingMap<String, dynamic> {
112112

113113
/// Time the server took to process the request, in milliseconds.
114114
@JsonKey(name: r'processingTimeMS')
115-
final int processingTimeMS;
115+
final int? processingTimeMS;
116116

117117
/// Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
118118
@JsonKey(name: r'processingTimingsMS')

packages/client_composition/lib/src/model/base_search_response.g.dart

Lines changed: 3 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)