-
Notifications
You must be signed in to change notification settings - Fork 115
Fix query parameters incorrectly typed as scalars #5606
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
Changes from all commits
ac7e53f
8dd0dd1
9ec44a1
da2ef96
aa28d9b
0c5e97b
61c8a72
95566e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| */ | ||
|
|
||
| import { RequestBase } from '@_types/Base' | ||
| import { ExpandWildcards, IndexName } from '@_types/common' | ||
| import { ExpandWildcards, Indices } from '@_types/common' | ||
| import { Duration } from '@_types/Time' | ||
| import { IndicesBlockOptions } from '@indices/_types/IndexSettings' | ||
|
|
||
|
|
@@ -46,7 +46,7 @@ export interface Request extends RequestBase { | |
| * To allow the adding of blocks to indices with `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to `false`. | ||
| * You can update this setting in the `elasticsearch.yml` file or by using the cluster update settings API. | ||
| */ | ||
| index: IndexName | ||
| index: Indices | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| /** | ||
| * The block type to add to the index. | ||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| */ | ||
|
|
||
| import { RequestBase } from '@_types/Base' | ||
| import { ExpandWildcards, IndexName } from '@_types/common' | ||
| import { ExpandWildcards, Indices } from '@_types/common' | ||
|
|
||
| /** | ||
| * Get data stream stats. | ||
|
|
@@ -48,7 +48,7 @@ export interface Request extends RequestBase { | |
| * Wildcard expressions (`*`) are supported. | ||
| * To target all data streams in a cluster, omit this parameter or use `*`. | ||
| */ | ||
| name?: IndexName | ||
| name?: Indices | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
| query_parameters: { | ||
| /** | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| */ | ||
|
|
||
| import { RequestBase } from '@_types/Base' | ||
| import { ExpandWildcards, IndexName } from '@_types/common' | ||
| import { ExpandWildcards, Indices } from '@_types/common' | ||
| import { Duration } from '@_types/Time' | ||
| import { IndicesBlockOptions } from '@indices/_types/IndexSettings' | ||
|
|
||
|
|
@@ -47,7 +47,7 @@ export interface Request extends RequestBase { | |
| * To allow the removal of blocks from indices with `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to `false`. | ||
| * You can update this setting in the `elasticsearch.yml` file or by using the cluster update settings API. | ||
| */ | ||
| index: IndexName | ||
| index: Indices | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| /** | ||
| * The block type to remove from the index. | ||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| */ | ||
|
|
||
| import { RequestBase } from '@_types/Base' | ||
| import { Name } from '@_types/common' | ||
| import { Names } from '@_types/common' | ||
|
|
||
| /** | ||
| * Clear the privileges cache. | ||
|
|
@@ -44,6 +44,6 @@ export interface Request extends RequestBase { | |
| * To clear all applications, use an asterism (`*`). | ||
| * It does not support other wildcard patterns. | ||
| */ | ||
| application: Name | ||
| application: Names | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/elastic/elasticsearch/blob/bb71252622bf967fc0a8093278e92b87379bc2c5/server/src/main/java/org/elasticsearch/rest/action/RestFieldCapabilitiesAction.java#L70