Description
priority: med
effort: depends on solution
Problem
There are common query parameters that are applicable to all the CAT APIs, for example the verbose
, format
, sort
, help
etc covered in https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html#common-parameters However they're missing from the OpenAPI documents.
Example
I can see that they're defined in the specification in
However, they don't show up in the OpenAPI output.
For example, in https://github.com/elastic/elasticsearch-specification/blob/main/output/openapi/elasticsearch-openapi.json the "cat aliases" operation shows only the parameters that are defined explicitly in https://github.com/elastic/elasticsearch-specification/blob/main/specification/cat/aliases/CatAliasesRequest.ts
"operationId": "cat-aliases",
"parameters": [
{
"$ref": "#/components/parameters/cat.aliases#expand_wildcards"
},
{
"$ref": "#/components/parameters/cat.aliases#master_timeout"
}
],
Do we need to add them to all the request definitions? Or is there a simple fix to get the CommonCatQueryParameters
to resolve?