-
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
base: main
Are you sure you want to change the base?
Conversation
|
Following you can find the validation changes against the target branch for the APIs.
You can validate these APIs yourself by using the |
| * @availability serverless | ||
| */ | ||
| filters?: string | ||
| filters?: string | string[] |
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.
| * 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 comment
The reason will be displayed to describe this comment to others. Learn more.
| * 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 comment
The reason will be displayed to describe this comment to others. Learn more.
| * 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 comment
The reason will be displayed to describe this comment to others. Learn more.
| * It does not support other wildcard patterns. | ||
| */ | ||
| application: Name | ||
| application: Names |
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.
| * It also accepts wildcards (`*`). | ||
| */ | ||
| snapshot: Name | ||
| snapshot: Names |
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.
| * If the text does not have a header row, columns are named "column1", "column2", "column3", for example. | ||
| */ | ||
| column_names?: string | ||
| column_names?: Names |
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.
| * If the text does not have a header row, columns are named "column1", "column2", "column3", for example. | ||
| */ | ||
| column_names?: string | ||
| column_names?: Names |
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.
Should this be string | string[] instead?
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.
Probably yes. The Name/Names is kinda arbitrary, so string will do since Names does not provide a benefit here.
I'll double check later.
| * If the text does not have a header role, columns are named "column1", "column2", "column3", for example. | ||
| */ | ||
| column_names?: string | ||
| column_names?: Names |
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.
Same comments as above, the underlying parsing function is the same.
No description provided.