Skip to content

Commit 705e8da

Browse files
committed
Use an enum for ES|QL format parameter
1 parent 34639ba commit 705e8da

File tree

3 files changed

+51
-4
lines changed

3 files changed

+51
-4
lines changed

output/schema/schema.json

Lines changed: 36 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/esql/query/QueryRequest.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface Request extends RequestBase {
3535
/**
3636
* A short version of the Accept header, e.g. json, yaml.
3737
*/
38-
format?: string
38+
format?: EsqlFormat
3939
/**
4040
* The character to use between values within a CSV row. Only valid for the CSV format.
4141
*/
@@ -87,3 +87,14 @@ export interface Request extends RequestBase {
8787
tables?: Dictionary<string, Dictionary<string, TableValuesContainer>>
8888
}
8989
}
90+
91+
export enum EsqlFormat {
92+
csv,
93+
json,
94+
tsv,
95+
txt,
96+
yaml,
97+
cbor,
98+
smile,
99+
arrow
100+
}

0 commit comments

Comments
 (0)