Skip to content

Common query parameters omitted from OpenAPI #3551

Open
@lcawl

Description

@lcawl

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

export interface CommonCatQueryParameters {

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions