Skip to content

Openapi followup #17341

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
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Openapi followup #17341

wants to merge 11 commits into from

Conversation

yaauie
Copy link
Member

@yaauie yaauie commented Mar 17, 2025

Release notes

[rn: skip]

What does this PR do?

I missed the boat reviewing #17292 before it was merged, so this PR is a series of improvements to the already-merged PR.

Why is it important/What is the impact to the user?

  • Improves clarity of generated documentation
  • Improves clarity of documentation source for maintainability

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files (and/or docker env variables)
  • [ ] I have added tests that prove my fix is effective or that my feature works

Review Notes

NOTE: This PR is a series of independent changes, each as its own commit, and is likely best reviewed commit-by-commit.

How to test this PR locally

Render `docs/static/spec/openapi/logstash-api.yml in https://editor-next.swagger.io/

Copy link

mergify bot commented Mar 17, 2025

This pull request does not have a backport label. Could you fix it @yaauie? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • backport-8.x is the label to automatically backport to the 8.x branch.
  • If no backport is necessary, please add the backport-skip label

Copy link
Member Author

Choose a reason for hiding this comment

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

474e73f is best reviewed ignoring whitespace

Copy link
Contributor

📃 DOCS PREVIEWhttps://logstash_bk_17341.docs-preview.app.elstc.co/diff

Copy link
Contributor

📃 DOCS PREVIEWhttps://logstash_bk_17341.docs-preview.app.elstc.co/diff

Copy link
Contributor

📃 DOCS PREVIEWhttps://logstash_bk_17341.docs-preview.app.elstc.co/diff

Copy link
Contributor

@karenzone karenzone left a comment

Choose a reason for hiding this comment

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

I get a clean build/preview with BUMP. In slack, I provided a link to instructions for installing and testing locally.

@robbavey
Copy link
Member

Running a bump preview on this [PR](https://bump.sh/preview/ae
c6e80e-4740-4a20-ad25-d7088e3cf810/operation/operation-healthreport), I see Additional Properties are NOT allowed rendered for the indicators object:

Screenshot 2025-03-19 at 4 47 19 PM

Whereas the existing content shows:

Screenshot 2025-03-19 at 4 52 36 PM

Is this expected?

@yaauie
Copy link
Member Author

yaauie commented Mar 19, 2025

Running a bump preview on this PR, I see Additional Properties are NOT allowed rendered for the indicators object:
...
Is this expected?

Yes; in 2d9b197 we declared (among other things) that the the object at address /indicators/pipelines on the health report does not have additional properties (beyond the specified status, symptom, and indicators).

If this adds undesirable noise, we can back that one out.

@robbavey
Copy link
Member

@yaauie Perfect - thank you. Just wanted to double check.

Copy link
Member

@robbavey robbavey left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@kaisecheng kaisecheng left a comment

Choose a reason for hiding this comment

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

Thanks for adding require fields, changing pipeline name to patternProperties and more improvements. Left one suggestion, otherwise, LGTM

default: localhost
description: the hostname or ip address of your logstash instance
port:
default: 9600
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
default: 9600
default: "9600"

swagger said default must be a string

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

Successfully merging this pull request may close these issues.

4 participants