Skip to content

Commit 7f78698

Browse files
authored
Use an enum for ES|QL format parameter (#2873)
1 parent 3dc9de9 commit 7f78698

File tree

6 files changed

+115
-8
lines changed

6 files changed

+115
-8
lines changed

Diff for: output/openapi/elasticsearch-openapi.json

+14-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/openapi/elasticsearch-serverless-openapi.json

+14-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/schema/schema-serverless.json

+36-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/schema/schema.json

+36-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/typescript/types.ts

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: specification/esql/query/QueryRequest.ts

+12-1
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)