From 8d9194d92c5e35ea242a4ce7428c81f774a18640 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Fri, 31 Jan 2025 17:45:48 +0100 Subject: [PATCH] uppercase enum source mode (#3676) (cherry picked from commit 94e5ff9eb25866b034e997beec7bffd5c3f12ae6) --- output/openapi/elasticsearch-openapi.json | 6 +++--- output/openapi/elasticsearch-serverless-openapi.json | 6 +++--- output/schema/schema-serverless.json | 6 +++--- output/schema/schema.json | 6 +++--- output/typescript/types.ts | 2 +- specification/indices/_types/IndexSettings.ts | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index e68fd670c8..fd79fb2e36 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -61912,9 +61912,9 @@ "indices._types:SourceMode": { "type": "string", "enum": [ - "disabled", - "stored", - "synthetic" + "DISABLED", + "STORED", + "SYNTHETIC" ] }, "indices._types:IndexingSlowlogSettings": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 2d28638f1b..9cc9a4d648 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -40677,9 +40677,9 @@ "indices._types:SourceMode": { "type": "string", "enum": [ - "disabled", - "stored", - "synthetic" + "DISABLED", + "STORED", + "SYNTHETIC" ] }, "indices._types:IndexingSlowlogSettings": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index c29ed9fe24..0cf8604aaa 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -95970,13 +95970,13 @@ "kind": "enum", "members": [ { - "name": "disabled" + "name": "DISABLED" }, { - "name": "stored" + "name": "STORED" }, { - "name": "synthetic" + "name": "SYNTHETIC" } ], "name": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 7af0feae95..b960202491 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -131395,13 +131395,13 @@ "kind": "enum", "members": [ { - "name": "disabled" + "name": "DISABLED" }, { - "name": "stored" + "name": "STORED" }, { - "name": "synthetic" + "name": "SYNTHETIC" } ], "name": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 1082366287..6fc5af5390 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11516,7 +11516,7 @@ export interface IndicesSoftDeletes { retention_lease?: IndicesRetentionLease } -export type IndicesSourceMode = 'disabled' | 'stored' | 'synthetic' +export type IndicesSourceMode = 'DISABLED' | 'STORED' | 'SYNTHETIC' export interface IndicesStorage { type: IndicesStorageType diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 038ea7617b..b2d19a6ec2 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -499,9 +499,9 @@ export class MappingLimitSettingsSourceFields { } export enum SourceMode { - disabled, - stored, - synthetic + DISABLED, + STORED, + SYNTHETIC } export class SlowlogSettings {