Skip to content

Commit

Permalink
Change TaskStatus to UserDefinedValue (#2250) (#2251) (#2272)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
swallez and github-actions[bot] authored Sep 7, 2023
1 parent a2c9529 commit 4a27c63
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 334 deletions.
260 changes: 5 additions & 255 deletions output/schema/schema.json

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

26 changes: 3 additions & 23 deletions output/typescript/types.ts

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

9 changes: 0 additions & 9 deletions specification/_global/get/GetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,4 @@ import { ErrorResponseBase } from '@_types/Base'

export class Response<TDocument> {
body: GetResult<TDocument>
exceptions: [
{
// Special case exception for 404 status code, Elasticsearch will return either:
// * index_not_found_exception as an error if the index doesn't exist
// * GetResult with only the requested _id, _index properties and found as a false boolean
statusCodes: [404]
body: GetResult<TDocument> | ErrorResponseBase
}
]
}
3 changes: 2 additions & 1 deletion specification/tasks/_types/TaskInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { Status } from '@tasks/_types/TaskStatus'
import { HttpHeaders, Id } from '@_types/common'
import { long } from '@_types/Numeric'
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'

export class Info {
action: string
Expand All @@ -32,7 +33,7 @@ export class Info {
node: string
running_time_in_nanos: long
start_time_in_millis: long
status?: Status
status?: UserDefinedValue
type: string
parent_task_id?: Id
}
Loading

0 comments on commit 4a27c63

Please sign in to comment.