Skip to content

Commit befcf46

Browse files
Fix find_stucture format enum (#5705) (#5708)
* 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 fbd4e5a commit befcf46

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
@@ -98,7 +98,7 @@ export interface Request<TJsonDocument> {
9898
* In this default scenario, all rows must have the same number of fields for a delimited format to be detected.
9999
* 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.
100100
*/
101-
format?: string
101+
format?: FindStructureFormat
102102
/**
103103
* 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.
104104
* The name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter.
@@ -207,3 +207,10 @@ export interface Request<TJsonDocument> {
207207
* @codegen_name text_files */
208208
body: Array<TJsonDocument>
209209
}
210+
211+
export enum FindStructureFormat {
212+
ndjson,
213+
xml,
214+
delimited,
215+
semi_structured_text
216+
}

0 commit comments

Comments
 (0)