@@ -1089,6 +1089,8 @@ public async Task<object> CustomDeleteAsync(
10891089 if ( path == null )
10901090 throw new ArgumentException ( "Parameter `path` is required when calling `CustomDelete`." ) ;
10911091
1092+ if ( string . IsNullOrWhiteSpace ( path ) )
1093+ throw new ArgumentException ( "Parameter `path` is required when calling `CustomDelete`." ) ;
10921094 var requestOptions = new InternalRequestOptions ( options ) ;
10931095 requestOptions . CustomPathParameters . Add ( "path" , QueryStringHelper . ParameterToString ( path ) ) ;
10941096
@@ -1122,6 +1124,8 @@ public async Task<AlgoliaHttpResponse> CustomDeleteWithHTTPInfoAsync(
11221124 if ( path == null )
11231125 throw new ArgumentException ( "Parameter `path` is required when calling `CustomDelete`." ) ;
11241126
1127+ if ( string . IsNullOrWhiteSpace ( path ) )
1128+ throw new ArgumentException ( "Parameter `path` is required when calling `CustomDelete`." ) ;
11251129 var requestOptions = new InternalRequestOptions ( options ) ;
11261130 requestOptions . CustomPathParameters . Add ( "path" , QueryStringHelper . ParameterToString ( path ) ) ;
11271131
@@ -1158,6 +1162,8 @@ public async Task<object> CustomGetAsync(
11581162 if ( path == null )
11591163 throw new ArgumentException ( "Parameter `path` is required when calling `CustomGet`." ) ;
11601164
1165+ if ( string . IsNullOrWhiteSpace ( path ) )
1166+ throw new ArgumentException ( "Parameter `path` is required when calling `CustomGet`." ) ;
11611167 var requestOptions = new InternalRequestOptions ( options ) ;
11621168 requestOptions . CustomPathParameters . Add ( "path" , QueryStringHelper . ParameterToString ( path ) ) ;
11631169
@@ -1191,6 +1197,8 @@ public async Task<AlgoliaHttpResponse> CustomGetWithHTTPInfoAsync(
11911197 if ( path == null )
11921198 throw new ArgumentException ( "Parameter `path` is required when calling `CustomGet`." ) ;
11931199
1200+ if ( string . IsNullOrWhiteSpace ( path ) )
1201+ throw new ArgumentException ( "Parameter `path` is required when calling `CustomGet`." ) ;
11941202 var requestOptions = new InternalRequestOptions ( options ) ;
11951203 requestOptions . CustomPathParameters . Add ( "path" , QueryStringHelper . ParameterToString ( path ) ) ;
11961204
@@ -1228,6 +1236,8 @@ public async Task<object> CustomPostAsync(
12281236 if ( path == null )
12291237 throw new ArgumentException ( "Parameter `path` is required when calling `CustomPost`." ) ;
12301238
1239+ if ( string . IsNullOrWhiteSpace ( path ) )
1240+ throw new ArgumentException ( "Parameter `path` is required when calling `CustomPost`." ) ;
12311241 var requestOptions = new InternalRequestOptions ( options ) ;
12321242 requestOptions . CustomPathParameters . Add ( "path" , QueryStringHelper . ParameterToString ( path ) ) ;
12331243
@@ -1265,6 +1275,8 @@ public async Task<AlgoliaHttpResponse> CustomPostWithHTTPInfoAsync(
12651275 if ( path == null )
12661276 throw new ArgumentException ( "Parameter `path` is required when calling `CustomPost`." ) ;
12671277
1278+ if ( string . IsNullOrWhiteSpace ( path ) )
1279+ throw new ArgumentException ( "Parameter `path` is required when calling `CustomPost`." ) ;
12681280 var requestOptions = new InternalRequestOptions ( options ) ;
12691281 requestOptions . CustomPathParameters . Add ( "path" , QueryStringHelper . ParameterToString ( path ) ) ;
12701282
@@ -1304,6 +1316,8 @@ public async Task<object> CustomPutAsync(
13041316 if ( path == null )
13051317 throw new ArgumentException ( "Parameter `path` is required when calling `CustomPut`." ) ;
13061318
1319+ if ( string . IsNullOrWhiteSpace ( path ) )
1320+ throw new ArgumentException ( "Parameter `path` is required when calling `CustomPut`." ) ;
13071321 var requestOptions = new InternalRequestOptions ( options ) ;
13081322 requestOptions . CustomPathParameters . Add ( "path" , QueryStringHelper . ParameterToString ( path ) ) ;
13091323
@@ -1341,6 +1355,8 @@ public async Task<AlgoliaHttpResponse> CustomPutWithHTTPInfoAsync(
13411355 if ( path == null )
13421356 throw new ArgumentException ( "Parameter `path` is required when calling `CustomPut`." ) ;
13431357
1358+ if ( string . IsNullOrWhiteSpace ( path ) )
1359+ throw new ArgumentException ( "Parameter `path` is required when calling `CustomPut`." ) ;
13441360 var requestOptions = new InternalRequestOptions ( options ) ;
13451361 requestOptions . CustomPathParameters . Add ( "path" , QueryStringHelper . ParameterToString ( path ) ) ;
13461362
0 commit comments