Skip to content

Add examples to both OpenAPI documents via overlays #2882

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

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Conversation

lcawl
Copy link
Contributor

@lcawl lcawl commented Sep 11, 2024

Relates to #2144, #2482

Until we can automatically include examples in the OpenAPI documents, they are being applied by using https://github.com/elastic/elasticsearch-specification/tree/main/docs/overlays

In preparation for publishing https://github.com/elastic/elasticsearch-specification/blob/main/output/openapi/elasticsearch-openapi.json, this PR splits the existing overlay into (1) an overlay that is specific to the serverless openAPI document, (2) an overlay that is specific to the non-serverless openAPI document, and (3) an overlay that contains any common updates such as examples that are applicable to both.

The make overlay-docs command is updated to apply all those overlays. I've also created a make lint-docs-errs command to only return linting errors rather than all the warnings and information messages.

@lcawl lcawl marked this pull request as ready for review September 11, 2024 02:47
@lcawl lcawl requested a review from szabosteve September 11, 2024 02:47
Copy link
Contributor

@szabosteve szabosteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this, LGTM!

@lcawl lcawl merged commit f8856c7 into main Sep 11, 2024
11 of 12 checks passed
@lcawl lcawl deleted the example-overlays branch September 11, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants