Skip to content

Commit

Permalink
Address review requests
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Dec 17, 2024
1 parent 726998b commit 3f227c0
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 3 deletions.
52 changes: 52 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 54 additions & 2 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions output/schema/validation-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@
],
"response": []
},
"cat.segments": {
"request": [
"Request: query parameter 'local' does not exist in the json spec",
"Request: query parameter 'master_timeout' does not exist in the json spec"
],
"response": []
},
"cat.tasks": {
"request": [
"Request: query parameter 'timeout' does not exist in the json spec",
"Request: query parameter 'wait_for_completion' does not exist in the json spec"
],
"response": []
},
"cat.transforms": {
"request": [
"request definition cat.transforms:Request / query - Property 'h' is already defined in an ancestor class",
Expand Down
4 changes: 4 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions specification/cat/segments/CatSegmentsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { CatRequestBase } from '@cat/_types/CatBase'
import { Bytes, Indices } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Get segment information.
Expand Down Expand Up @@ -46,5 +47,18 @@ export interface Request extends CatRequestBase {
* The unit used to display byte values.
*/
bytes?: Bytes
/**
* If `true`, the request computes the list of selected nodes from the
* local cluster state. If `false` the list of selected nodes are computed
* from the cluster state of the master node. In both cases the coordinating
* node will send requests for further information to each selected node.
* @server_default false
*/
local?: boolean
/**
* Period to wait for a connection to the master node.
* @server_default 30s
*/
master_timeout?: Duration
}
}
13 changes: 12 additions & 1 deletion specification/cat/tasks/CatTasksRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { CatRequestBase } from '@cat/_types/CatBase'
import { TimeUnit } from '@_types/Time'
import { Duration, TimeUnit } from '@_types/Time'

/**
* Get task information.
Expand Down Expand Up @@ -49,5 +49,16 @@ export interface Request extends CatRequestBase {
* Unit used to display time values.
*/
time?: TimeUnit
/**
* Period to wait for a response.
* If no response is received before the timeout expires, the request fails and returns an error.
* @server_default 30s
*/
timeout?: Duration
/**
* If `true`, the request blocks until the task has completed.
* @server_default false
*/
wait_for_completion?: boolean
}
}

0 comments on commit 3f227c0

Please sign in to comment.