Skip to content

Commit c4b2568

Browse files
Fix find_stucture format enum (#5705) (#5707)
* Fix find_structure format enum * Run make spec-format-fix (cherry picked from commit 93701e0) Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
1 parent 70642e0 commit c4b2568

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

specification/text_structure/find_structure/FindStructureRequest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export interface Request<TJsonDocument> {
9696
* In this default scenario, all rows must have the same number of fields for a delimited format to be detected.
9797
* 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.
9898
*/
99-
format?: string
99+
format?: FindStructureFormat
100100
/**
101101
* 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.
102102
* 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<TJsonDocument> {
205205
* @codegen_name text_files */
206206
body: Array<TJsonDocument>
207207
}
208+
209+
export enum FindStructureFormat {
210+
ndjson,
211+
xml,
212+
delimited,
213+
semi_structured_text
214+
}

0 commit comments

Comments
 (0)