Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion output/openapi/elasticsearch-openapi.json

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

9 changes: 8 additions & 1 deletion output/openapi/elasticsearch-serverless-openapi.json

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

55 changes: 19 additions & 36 deletions output/schema/schema-serverless.json

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

55 changes: 19 additions & 36 deletions output/schema/schema.json

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

2 changes: 1 addition & 1 deletion output/typescript/types.ts

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

2 changes: 1 addition & 1 deletion specification/_types/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class ErrorResponseBase {
// In some edge cases `error` can be a string that is a shortcut to `error.reason`, for example if you call `GET _cat/foo`.
// If the error is a string, it means that it was not caused by an exception on ES side, but on the HTTP routing layer.
// This should never happen in clients, because we assume we will never send malformed request.
error: ErrorCause
error: ErrorCause | string
status: integer
}

Expand Down
13 changes: 0 additions & 13 deletions specification/indices/get_alias/IndicesGetAliasResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,14 @@
*/

import { AliasDefinition } from '@indices/_types/AliasDefinition'
import { AdditionalProperties } from '@spec_utils/behaviors'
import { Dictionary } from '@spec_utils/Dictionary'
import { ErrorResponseBase } from '@_types/Base'
import { IndexName } from '@_types/common'

export class Response {
/** @codegen_name aliases */
body: Dictionary<IndexName, IndexAliases>
exceptions: [
{
statusCodes: [404]
body: NotFoundAliases | ErrorResponseBase
}
]
}

export class IndexAliases {
aliases: Dictionary<string, AliasDefinition>
}

class NotFoundAliases implements AdditionalProperties<string, IndexAliases> {
error: string
status: number
}