Skip to content

Commit a4f7b5a

Browse files
Convert IndexPrivilege and ClusterPrivilege to non-exhaustive enums (#2084) (#2095)
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent 187a056 commit a4f7b5a

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

output/schema/schema.json

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

specification/security/_types/Privileges.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class ApplicationPrivileges {
3838
resources: string[]
3939
}
4040

41+
/** @non_exhaustive */
4142
export enum ClusterPrivilege {
4243
all,
4344
cancel_task,
@@ -162,6 +163,7 @@ export type RoleTemplateInlineQuery = string | QueryContainer
162163
/** @codegen_names inline, stored */
163164
export type RoleTemplateScript = RoleTemplateInlineScript | StoredScriptId
164165

166+
/** @non_exhaustive */
165167
export enum IndexPrivilege {
166168
none,
167169
all,

0 commit comments

Comments
 (0)