Skip to content

Commit

Permalink
Use an enum for ES|QL format parameter (#2873)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored Sep 9, 2024
1 parent 3dc9de9 commit 7f78698
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 8 deletions.
15 changes: 14 additions & 1 deletion output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 36 additions & 2 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 36 additions & 2 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion specification/esql/query/QueryRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface Request extends RequestBase {
/**
* A short version of the Accept header, e.g. json, yaml.
*/
format?: string
format?: EsqlFormat
/**
* The character to use between values within a CSV row. Only valid for the CSV format.
*/
Expand Down Expand Up @@ -87,3 +87,14 @@ export interface Request extends RequestBase {
tables?: Dictionary<string, Dictionary<string, TableValuesContainer>>
}
}

export enum EsqlFormat {
csv,
json,
tsv,
txt,
yaml,
cbor,
smile,
arrow
}

0 comments on commit 7f78698

Please sign in to comment.