Skip to content

Commit ff207b8

Browse files
committed
Fix source query params for generated request extensions
This was fixed for RequestParameters.Generated.cs but was still an issue for RequestParametersExtensions.Generated.cs. Closes #858.
1 parent 141fc35 commit ff207b8

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

Diff for: src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParametersExtensions.Generated.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace Nest
5151
where T : class
5252
{
5353
var _@(mm) = @mm@Raw(".Select(e=>(PropertyPathMarker)e)");
54-
qs.AddQueryString("@mm", _@mm);
54+
qs.AddQueryString("@kv.Value.OriginalQueryStringParamName", _@mm);
5555
return qs;
5656
}
5757
</text>

Diff for: src/Elasticsearch.Net/Domain/Enums.Generated.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
///This file contains all the typed enums that the client rest api spec exposes.
99
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
10-
///Generated of commit
10+
///Generated of commit 154a5112f9
1111
namespace Elasticsearch.Net
1212
{
1313

Diff for: src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
//This file contains all the typed querystring parameters that are generated of the client spec.
99
//This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
10-
//Generated of commit
10+
//Generated of commit 154a5112f9
1111

1212
namespace Elasticsearch.Net
1313
{

Diff for: src/Elasticsearch.Net/IElasticsearchClient.Generated.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Elasticsearch.Net
1515
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
1616
///</pre>
1717
///<pre>
18-
///Generated of commit
18+
///Generated of commit 154a5112f9
1919
///</pre>
2020
///</summary>
2121
public interface IElasticsearchClient

Diff for: src/Nest/DSL/_Descriptors.generated.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
//This file lays the base for all the descriptors based on the query string parameters in the spec for IElasticClient.
99
//This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
10-
//Generated of commit
10+
//Generated of commit 154a5112f9
1111

1212
namespace Nest
1313
{

Diff for: src/Nest/DSL/_Requests.generated.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
//This file contains all the typed querystring parameters that are generated of the client spec.
1010
//This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
11-
//Generated of commit
11+
//Generated of commit 154a5112f9
1212

1313
namespace Nest
1414
{

Diff for: src/Nest/Domain/RequestParametersExtensions.Generated.cs

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
///This file contains all the typed request parameters that are generated of the client spec.
1111
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
12-
///Generated of commit
12+
///Generated of commit 154a5112f9
1313

1414
namespace Nest
1515
{
@@ -47,7 +47,7 @@ internal static ExplainRequestParameters _SourceExclude<T>(
4747
where T : class
4848
{
4949
var _source_exclude = source_exclude.Select(e=>(PropertyPathMarker)e);
50-
qs.AddQueryString("source_exclude", _source_exclude);
50+
qs.AddQueryString("_source_exclude", _source_exclude);
5151
return qs;
5252
}
5353

@@ -59,7 +59,7 @@ internal static ExplainRequestParameters _SourceInclude<T>(
5959
where T : class
6060
{
6161
var _source_include = source_include.Select(e=>(PropertyPathMarker)e);
62-
qs.AddQueryString("source_include", _source_include);
62+
qs.AddQueryString("_source_include", _source_include);
6363
return qs;
6464
}
6565

@@ -83,7 +83,7 @@ internal static GetRequestParameters _SourceExclude<T>(
8383
where T : class
8484
{
8585
var _source_exclude = source_exclude.Select(e=>(PropertyPathMarker)e);
86-
qs.AddQueryString("source_exclude", _source_exclude);
86+
qs.AddQueryString("_source_exclude", _source_exclude);
8787
return qs;
8888
}
8989

@@ -95,7 +95,7 @@ internal static GetRequestParameters _SourceInclude<T>(
9595
where T : class
9696
{
9797
var _source_include = source_include.Select(e=>(PropertyPathMarker)e);
98-
qs.AddQueryString("source_include", _source_include);
98+
qs.AddQueryString("_source_include", _source_include);
9999
return qs;
100100
}
101101

@@ -107,7 +107,7 @@ internal static SourceRequestParameters _SourceExclude<T>(
107107
where T : class
108108
{
109109
var _source_exclude = source_exclude.Select(e=>(PropertyPathMarker)e);
110-
qs.AddQueryString("source_exclude", _source_exclude);
110+
qs.AddQueryString("_source_exclude", _source_exclude);
111111
return qs;
112112
}
113113

@@ -119,7 +119,7 @@ internal static SourceRequestParameters _SourceInclude<T>(
119119
where T : class
120120
{
121121
var _source_include = source_include.Select(e=>(PropertyPathMarker)e);
122-
qs.AddQueryString("source_include", _source_include);
122+
qs.AddQueryString("_source_include", _source_include);
123123
return qs;
124124
}
125125

@@ -204,7 +204,7 @@ internal static MultiGetRequestParameters _SourceExclude<T>(
204204
where T : class
205205
{
206206
var _source_exclude = source_exclude.Select(e=>(PropertyPathMarker)e);
207-
qs.AddQueryString("source_exclude", _source_exclude);
207+
qs.AddQueryString("_source_exclude", _source_exclude);
208208
return qs;
209209
}
210210

@@ -216,7 +216,7 @@ internal static MultiGetRequestParameters _SourceInclude<T>(
216216
where T : class
217217
{
218218
var _source_include = source_include.Select(e=>(PropertyPathMarker)e);
219-
qs.AddQueryString("source_include", _source_include);
219+
qs.AddQueryString("_source_include", _source_include);
220220
return qs;
221221
}
222222

0 commit comments

Comments
 (0)