[DOCS] Fix OpenAPI linting error in detection_engine#248570
[DOCS] Fix OpenAPI linting error in detection_engine#248570lcawl merged 17 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
Good catch! I've fixed that cut and paste error. Thanks for tackling the pipeline issue! |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
|
| if (options.skipKeys?.includes(key)) { | ||
| return; | ||
| } | ||
|
|
There was a problem hiding this comment.
Nice work @maximpn 👌 . Even made this extensible in case there are other future schema paths we need to ignore.
sdesalas
left a comment
There was a problem hiding this comment.
Hi @lcawl. All looking good on my part, happy to approve.
- CI pipeline is passing (thanks @maximpn)
- Visual inspection of openapi YAML structure does not flag anything strange
- Testing YAML before and after in the swagger editor generate same output
I think we're good to merge. 🚀
Thank you again 🙏 for reviewing these linting issues.
|
Starting backport for target branches: 8.19, 9.3 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co> (cherry picked from commit da6bf3e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co> (cherry picked from commit da6bf3e)
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
1 similar comment
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
…250276) # Backport This will backport the following commits from `main` to `9.3`: - [[DOCS] Fix OpenAPI linting error in detection_engine (#248570)](#248570) <!--- Backport version: 10.2.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2026-01-23T10:04:15Z","message":"[DOCS] Fix OpenAPI linting error in detection_engine (#248570)\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"da6bf3ecab9d48b569d444f81c2e037cd4404cec","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","docs","Team:Detection Engine","backport:version","v9.3.0","v9.4.0","v8.19.10"],"title":"[DOCS] Fix OpenAPI linting error in detection_engine","number":248570,"url":"https://github.com/elastic/kibana/pull/248570","mergeCommit":{"message":"[DOCS] Fix OpenAPI linting error in detection_engine (#248570)\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"da6bf3ecab9d48b569d444f81c2e037cd4404cec"}},"sourceBranch":"main","suggestedTargetBranches":["9.3","8.19"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/248570","number":248570,"mergeCommit":{"message":"[DOCS] Fix OpenAPI linting error in detection_engine (#248570)\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"da6bf3ecab9d48b569d444f81c2e037cd4404cec"}},{"branch":"8.19","label":"v8.19.10","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
…#250278) # Backport This will backport the following commits from `main` to `8.19`: - [[DOCS] Fix OpenAPI linting error in detection_engine (#248570)](#248570) <!--- Backport version: 10.2.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2026-01-23T10:04:15Z","message":"[DOCS] Fix OpenAPI linting error in detection_engine (#248570)\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"da6bf3ecab9d48b569d444f81c2e037cd4404cec","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","docs","Team:Detection Engine","backport:version","v9.3.0","v9.4.0","v8.19.10"],"title":"[DOCS] Fix OpenAPI linting error in detection_engine","number":248570,"url":"https://github.com/elastic/kibana/pull/248570","mergeCommit":{"message":"[DOCS] Fix OpenAPI linting error in detection_engine (#248570)\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"da6bf3ecab9d48b569d444f81c2e037cd4404cec"}},"sourceBranch":"main","suggestedTargetBranches":["9.3","8.19"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/248570","number":248570,"mergeCommit":{"message":"[DOCS] Fix OpenAPI linting error in detection_engine (#248570)\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"da6bf3ecab9d48b569d444f81c2e037cd4404cec"}},{"branch":"8.19","label":"v8.19.10","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
Summary
This PR is an attempt to fix the following linting error that is returned when you run
make api-docs-lintornpx @redocly/cli lint output/kibana.yaml --config ./linters/redocly.yamlfrom theoas_docsdirectory:Swagger editor also identified
Security_Detections_API_SetAlertAssigneesBodyas an object that includesnot allowed fields. Per https://swagger.io/docs/specification/v3_0/adding-examples/#object-and-property-examples "Note that schemas and properties support single example but not multiple examples". Therefore, I've defined the examples separately and called them at a higher level. The same changes were also required inSetAlertTagsBody.Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.Identify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.