From ca11b3b3e7f6b53c8aa0031dc81b8953f40c92bf Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 20 Nov 2025 09:00:13 +0400 Subject: [PATCH] Fix find_stucture format enum (#5705) * Fix find_structure format enum * Run make spec-format-fix (cherry picked from commit 93701e073fc2fa1aa9b9cd2bcea9990a53b67b1c) --- .../find_structure/FindStructureRequest.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/specification/text_structure/find_structure/FindStructureRequest.ts b/specification/text_structure/find_structure/FindStructureRequest.ts index 7cff4c878e..1ef8f063fb 100644 --- a/specification/text_structure/find_structure/FindStructureRequest.ts +++ b/specification/text_structure/find_structure/FindStructureRequest.ts @@ -96,7 +96,7 @@ export interface Request { * In this default scenario, all rows must have the same number of fields for a delimited format to be detected. * If the format is set to `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. */ - format?: string + format?: FindStructureFormat /** * If you have set `format` to `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text. * The name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter. @@ -205,3 +205,10 @@ export interface Request { * @codegen_name text_files */ body: Array } + +export enum FindStructureFormat { + ndjson, + xml, + delimited, + semi_structured_text +}