Skip to content

Commit 2f6c939

Browse files
committed
Fix type name
1 parent c06336f commit 2f6c939

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ApiGenerator/Domain/ApiQueryParametersPatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ private static string CreateCSharpName(string queryStringKey, string endpointNam
6565
{
6666
if (string.IsNullOrWhiteSpace(queryStringKey)) return "UNKNOWN";
6767

68-
if (queryStringKey == "format" && endpointName == "ml.find_file_structure")
69-
return "MachineLearningFindFileStructureFormat";
68+
if (queryStringKey == "format" && endpointName == "text_structure.find_structure")
69+
return "TextStructureFindStructureFormat";
7070

7171
var cased = queryStringKey.ToPascalCase();
7272
switch (cased)

src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.TextStructure.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public bool? Explain
5858
}
5959

6060
///<summary>Optional parameter to specify the high level file format</summary>
61-
public Format? Format
61+
public TextStructureFindStructureFormat? TextStructureFindStructureFormat
6262
{
63-
get => Q<Format? >("format");
63+
get => Q<TextStructureFindStructureFormat? >("format");
6464
set => Q("format", value);
6565
}
6666

0 commit comments

Comments
 (0)