You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking at the actual response from the cluster it is of the form:
{"responses": [{"repository": "my-repo","snapshots": [/* list of snapshots... */]}}
The TS type is missing the responses array of objects in which snapshots is nested.
Actual request:
constresponse=awaitclient.snapshot.get({
repository,snapshot: '_all',ignore_unavailable: true,// Allow request to succeed even if some snapshots are unavailable.});
Expected behavior
The TS types should match the shape of the response from the cluster.
🐛 Bug Report
The TS type for calling
client.snapshot.get
is associated with the following type:https://github.com/elastic/elasticsearch-js/blob/7a3cfe7e23b7a81c563f4deaa2990fed4c321ee9/api/types.d.ts#L6069
When looking at the actual response from the cluster it is of the form:
The TS type is missing the
responses
array of objects in whichsnapshots
is nested.Actual request:
Expected behavior
The TS types should match the shape of the response from the cluster.
Your Environment
@elastic/elasticsearch
npm:@elastic/elasticsearch-canary@^8.0.0-canary.4The text was updated successfully, but these errors were encountered: