Skip to content

Commit 3f7a495

Browse files
swallezsethmlarson
andauthored
Convert IndexPrivilege and ClusterPrivilege to non-exhaustive enums (#2084) (#2096)
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent 85a70ae commit 3f7a495

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
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.

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,
@@ -161,6 +162,7 @@ export type RoleTemplateInlineQuery = string | QueryContainer
161162
/** @codegen_names inline, stored */
162163
export type RoleTemplateScript = RoleTemplateInlineScript | StoredScriptId
163164

165+
/** @non_exhaustive */
164166
export enum IndexPrivilege {
165167
none,
166168
all,

0 commit comments

Comments
 (0)