-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] Fix general Security Solution API reference documentation issues #190035
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
**Addresses:** #190035 ## Summary This PR fixes `operationId` conflicts in Security Solution OpenAPI specs. ## Details API reference documentation platform (Bump.sh) expects unique `operationId`s to build proper navigation on the documentation page. It's expected each `operationId` throughout whole Kibana since Kibana API reference documentation will contain all available API endpoints.
…ic#190040) **Addresses:** elastic#190035 ## Summary This PR fixes `operationId` conflicts in Security Solution OpenAPI specs. ## Details API reference documentation platform (Bump.sh) expects unique `operationId`s to build proper navigation on the documentation page. It's expected each `operationId` throughout whole Kibana since Kibana API reference documentation will contain all available API endpoints.
With respect to the rendering of additionalProperties, I can recreate that with a simple example:
I will follow up with the support folks. |
A couple of issues spotted while reviewing:
In the output, the |
@lcawl I doubled check @natasha-moore-elastic's findings and it looks like |
It's an expected behavior. And basically OpenAPI 3.1 behavior despite we use OpenAPI 3.0 right now. The OpenAPI 3.1 specification states that |
This issue with the duplicated info has now been fixed in Bump.sh and I re-tested and could no longer recreate the problem. Thanks for reporting it! |
@maximpn Since the docs have been published, I think we can safely assume that all the main issues have been addressed. A couple of unchecked issues remain in the description - if you think this is something worth working on later, please extract them to their own separate tickets. Thanks! |
Epic: https://github.com/elastic/security-team/issues/9400 (internal)
Relates to: https://github.com/elastic/security-team/issues/9398
Relates to: https://github.com/elastic/security-team/issues/9526
Relates to: https://github.com/elastic/security-team/issues/9530
Relates to: https://github.com/elastic/security-team/issues/9531
Relates to: https://github.com/elastic/security-team/issues/9524
Relates to: https://github.com/elastic/security-team/issues/9528
Relates to: https://github.com/elastic/security-team/issues/9525
Relates to: https://github.com/elastic/security-team/issues/9527
Summary
This ticket collects general API reference documentation issues spotted after deployment bundled and merged Security Solution OpenAPI specs to Bump.sh (new API reference documentation platform). It should focus on issues related to OpenAPI bundler
kbn-openapi-bundler
and/or source OpenAPI specs problems causing exposing wrong API endpoints, missing API endpoints, having wrongoperationId
and etc. In the other words critical issues violating documentation correctness.It shouldn't include cosmetic documentation readiness issues (like missing summary, description, etc.) since it's covered in team specific tickets
Spotted issues
operationId
s in Detections and AI Assistant APIs (operationId
s must be unique throughout whole Kibana) (fix)Response schema descriptions are duplicated in the bump.sh output (comment) (fix comment)
Can we provide
Elastic-Api-Version
header for curl examples?Bump.sh doesn't render objects with
additionalProperties: SomeSchema
correctly (schemas declaring an object accepting arbitrary keys where values are restricted to some type which could be represented as a recordRecord<string, SomeType>
).requestBody.queries
in/api/osquery/packs
hasObjectQueries
type which accepts any string key whose values is restricted toObjectQueriesItem
The text was updated successfully, but these errors were encountered: