Skip to content

Commit 4a27c63

Browse files
Change TaskStatus to UserDefinedValue (#2250) (#2251) (#2272)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a2c9529 commit 4a27c63

File tree

7 files changed

+14
-334
lines changed

7 files changed

+14
-334
lines changed

output/schema/schema.json

Lines changed: 5 additions & 255 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 3 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/get/GetResponse.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,4 @@ import { ErrorResponseBase } from '@_types/Base'
2222

2323
export class Response<TDocument> {
2424
body: GetResult<TDocument>
25-
exceptions: [
26-
{
27-
// Special case exception for 404 status code, Elasticsearch will return either:
28-
// * index_not_found_exception as an error if the index doesn't exist
29-
// * GetResult with only the requested _id, _index properties and found as a false boolean
30-
statusCodes: [404]
31-
body: GetResult<TDocument> | ErrorResponseBase
32-
}
33-
]
3425
}

specification/tasks/_types/TaskInfo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { Status } from '@tasks/_types/TaskStatus'
2121
import { HttpHeaders, Id } from '@_types/common'
2222
import { long } from '@_types/Numeric'
23+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2324

2425
export class Info {
2526
action: string
@@ -32,7 +33,7 @@ export class Info {
3233
node: string
3334
running_time_in_nanos: long
3435
start_time_in_millis: long
35-
status?: Status
36+
status?: UserDefinedValue
3637
type: string
3738
parent_task_id?: Id
3839
}

0 commit comments

Comments
 (0)