From 01a96ff2202d4d75deabc742d46a51f18a5ad966 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 3cbf8b4875..bcfbf8b471 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -61830,9 +61830,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 07cfd255df..66335414f0 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -40667,9 +40667,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 d6054d3808..6321ce2cd6 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -96029,13 +96029,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 8b4d07eadd..a5c2c17f21 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -131438,13 +131438,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 dda32baf36..c9453d8e8d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11527,7 +11527,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 {