We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The order property of this request body is expected to be on body.order instead of on the root.
order
body.order
A request like this completes successfully, despite TS complaints:
client.asCurrentUser.indices.putTemplate({ name: 'test', order: 13, });
It looks like IndicesPutTemplateRequest expects order to be a child of the body property: https://github.com/elastic/elasticsearch-specification/blob/main/specification/indices/put_template/IndicesPutTemplateRequest.ts#L49.
IndicesPutTemplateRequest
body
export interface Request extends RequestBase { path_parts?: { name: Name } query_parameters?: { create?: boolean flat_settings?: boolean include_type_name?: boolean master_timeout?: Time timeout?: Time } + order?: integer body?: { aliases?: Dictionary<IndexName, Alias> index_patterns?: string | string[] mappings?: TypeMapping - order?: integer settings?: Dictionary<string, UserDefinedValue> version?: VersionNumber } }
The text was updated successfully, but these errors were encountered:
According to the doc it can go either in the body or in the querystring, I'll update our definition to accept it in the quertystring as well :)
Sorry, something went wrong.
No branches or pull requests
🐛 Wrong type
The
order
property of this request body is expected to be onbody.order
instead of on the root.Definition
A request like this completes successfully, despite TS complaints:
It looks like
IndicesPutTemplateRequest
expectsorder
to be a child of thebody
property: https://github.com/elastic/elasticsearch-specification/blob/main/specification/indices/put_template/IndicesPutTemplateRequest.ts#L49.The text was updated successfully, but these errors were encountered: