Skip to content

Commit 4d797e6

Browse files
authored
Extract new enum out of response file (#5284)
The new guidelines make it clear that we should not add new types in request or response files.
1 parent e746394 commit 4d797e6

File tree

6 files changed

+34
-33
lines changed

6 files changed

+34
-33
lines changed

output/openapi/elasticsearch-openapi.json

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

output/openapi/elasticsearch-serverless-openapi.json

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

output/schema/schema.json

Lines changed: 20 additions & 20 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 & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/security/_types/ApiKey.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,8 @@ export enum ApiKeyType {
116116
rest,
117117
cross_cluster
118118
}
119+
120+
export enum ApiKeyManagedBy {
121+
cloud,
122+
elasticsearch
123+
}

specification/security/authenticate/SecurityAuthenticateResponse.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919

2020
import { Id, Metadata, Name, Username } from '@_types/common'
21+
import { ApiKeyManagedBy } from '@security/_types/ApiKey'
2122
import { RealmInfo } from '@security/_types/RealmInfo'
2223
import { Token } from './types'
2324

@@ -44,11 +45,6 @@ export class Response {
4445
export class AuthenticateApiKey {
4546
id: Id
4647
name?: Name
47-
managed_by: AuthenticateApiKeyManagedBy
48+
managed_by: ApiKeyManagedBy
4849
internal: boolean
4950
}
50-
51-
export enum AuthenticateApiKeyManagedBy {
52-
cloud,
53-
elasticsearch
54-
}

0 commit comments

Comments
 (0)