Skip to content

Feature/7.x/update ll client #4381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions src/ApiGenerator/Domain/Specification/QueryParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ namespace ApiGenerator.Domain.Specification
{
public class QueryParameters
{
private static readonly string[] FieldsParams =
{
"fields", "_source_includes", "_source_excludes",
};
private static readonly string[] FieldsParams = { "fields", "_source_includes", "_source_excludes", };

public bool Skip { get; set; }

Expand Down Expand Up @@ -72,7 +69,16 @@ public IEnumerable<string> DescriptionHighLevel

public string SetterLowLevel => "value";

public string Type { get; set; }
private string _type;

public string Type
{
// TODO support unions
get => !_type.Contains("|")
? _type
: _type.Split('|', StringSplitOptions.RemoveEmptyEntries).First().Trim();
set => _type = value;
}

public string TypeHighLevel
{
Expand Down
14 changes: 7 additions & 7 deletions src/ApiGenerator/RestSpecification/Core/cat.indices.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d (Days)",
"h (Hours)",
"m (Minutes)",
"s (Seconds)",
"ms (Milliseconds)",
"micros (Microseconds)",
"nanos (Nanoseconds)"
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
]
},
"v":{
Expand Down
14 changes: 7 additions & 7 deletions src/ApiGenerator/RestSpecification/Core/cat.nodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d (Days)",
"h (Hours)",
"m (Minutes)",
"s (Seconds)",
"ms (Milliseconds)",
"micros (Microseconds)",
"nanos (Nanoseconds)"
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
]
},
"v":{
Expand Down
14 changes: 7 additions & 7 deletions src/ApiGenerator/RestSpecification/Core/cat.pending_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d (Days)",
"h (Hours)",
"m (Minutes)",
"s (Seconds)",
"ms (Milliseconds)",
"micros (Microseconds)",
"nanos (Nanoseconds)"
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
]
},
"v":{
Expand Down
14 changes: 7 additions & 7 deletions src/ApiGenerator/RestSpecification/Core/cat.recovery.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d (Days)",
"h (Hours)",
"m (Minutes)",
"s (Seconds)",
"ms (Milliseconds)",
"micros (Microseconds)",
"nanos (Nanoseconds)"
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
]
},
"v":{
Expand Down
14 changes: 7 additions & 7 deletions src/ApiGenerator/RestSpecification/Core/cat.shards.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d (Days)",
"h (Hours)",
"m (Minutes)",
"s (Seconds)",
"ms (Milliseconds)",
"micros (Microseconds)",
"nanos (Nanoseconds)"
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
]
},
"v":{
Expand Down
14 changes: 7 additions & 7 deletions src/ApiGenerator/RestSpecification/Core/cat.snapshots.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d (Days)",
"h (Hours)",
"m (Minutes)",
"s (Seconds)",
"ms (Milliseconds)",
"micros (Microseconds)",
"nanos (Nanoseconds)"
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
]
},
"v":{
Expand Down
14 changes: 7 additions & 7 deletions src/ApiGenerator/RestSpecification/Core/cat.tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d (Days)",
"h (Hours)",
"m (Minutes)",
"s (Seconds)",
"ms (Milliseconds)",
"micros (Microseconds)",
"nanos (Nanoseconds)"
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
]
},
"v":{
Expand Down
4 changes: 2 additions & 2 deletions src/ApiGenerator/RestSpecification/Core/reindex.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"default":"5m"
},
"slices":{
"type":"number",
"type":"number|string",
"default":1,
"description":"The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks."
"description":"The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`."
},
"max_docs":{
"type":"number",
Expand Down
Loading