Skip to content

Sort the parameters and properties for each endpoint #4224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lcawl opened this issue Apr 8, 2025 · 0 comments
Open

Sort the parameters and properties for each endpoint #4224

lcawl opened this issue Apr 8, 2025 · 0 comments

Comments

@lcawl
Copy link
Contributor

lcawl commented Apr 8, 2025

🚀 Feature Proposal

Since the API docs are published directly from the OpenAPI documents either the transform-to-openapi script needs to sort list of parameters and properties (alphabetically) or else we must rely on all contributors to ensure the properties and parameters are sorted in their specifications.

Motivation

We received the following feedback about the _search endpoint: "The order of the query parameters and objects listed after “Body” are confusing because they are mostly in alphabetical order, but not quite. Therefore, I first overlooked what I was looking for because I assumed they were all in alphabetical order only to realize later when I read through every single item on the page that they are not really in alphabetical order."

Example

For example, in https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-search the list of query parameters is as follows:

This matches the order they're listed in https://github.com/elastic/elasticsearch-specification/blob/main/specification/_global/search/SearchRequest.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant