From 9350af637cfaf2c688058bc4ddab79f47eb7e1f1 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 25 Feb 2025 16:23:36 +0400 Subject: [PATCH] Revert "Uppercase enum source mode" (#3810) * Revert "Switch enums from upper case to lower case" (cherry picked from commit 779fb2abe07c7c8fb3f10109326f54c1203b763e) --- 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 f4d5db6fcb..f15478b1a1 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -62163,9 +62163,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 bfb4dd82d4..a3a6a1edae 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -40550,9 +40550,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 c6a6f434b0..e19ad8bb3e 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -95871,13 +95871,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 7df22dac3c..6c29807a04 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -130211,13 +130211,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 23a1e08035..4ca06c14f2 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11460,7 +11460,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 2680da8bbc..9b62d988a1 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -500,9 +500,9 @@ export class MappingLimitSettingsSourceFields { } export enum SourceMode { - DISABLED, - STORED, - SYNTHETIC + disabled, + stored, + synthetic } export class SlowlogSettings {