Commit 63575a8
**Resolves: elastic/security-docs#3545
## Summary
I am fixing documentation for the version and revision fields.
I used this page as the base documentation:
https://docs.elastic.dev/security-solution/dev-docs/detections/rule-versions
The changes:
- by marking the RuleVersion as read-only I am making sure we are
properly documenting that this field is not to be used in the request.
It is only returned in the response.
- by introducing RuleRevision type and marking it as read-only, I am
doing the same for this field, saying that this field is not supposed to
be used in the request.
- I am not changing any code in the app, as the ticket says we shouldn't
do any breaking changes and the update of the version should not cause
400 error. Basically current behavior is kept: users can still update
the version to whatever value they want, including going backwards, and
the changes to revision field is completely ignored.
- I am adding a condensed description of these fields.
I wanted to introduce an internal link between these two fields, but I
couldn't make it work in Bump.sh (even though this should work, normal
Markdown links) so I abandoned this idea.
You can also use this [link](https://bump.sh/jkelas2/doc/kibana_wip2)
where I deployed the generated bundled doc.
Screenshots:
<img width="664" alt="image"
src="https://github.com/user-attachments/assets/34d82eb2-f7f0-4369-ad8e-2fd3c1f35447"
/>
<img width="660" alt="image"
src="https://github.com/user-attachments/assets/dc7772af-0185-4850-816e-60be003775d6"
/>
---------
Co-authored-by: kibanamachine <[email protected]>
1 parent f408a51 commit 63575a8
File tree
8 files changed
+143
-18
lines changed- oas_docs/output
- x-pack/solutions/security/plugins/security_solution
- common/api/detection_engine/model/rule_schema
- docs/openapi
- ess
- serverless
8 files changed
+143
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53198 | 53198 | | |
53199 | 53199 | | |
53200 | 53200 | | |
53201 | | - | |
53202 | | - | |
| 53201 | + | |
53203 | 53202 | | |
53204 | 53203 | | |
53205 | 53204 | | |
| |||
53545 | 53544 | | |
53546 | 53545 | | |
53547 | 53546 | | |
| 53547 | + | |
| 53548 | + | |
| 53549 | + | |
| 53550 | + | |
| 53551 | + | |
| 53552 | + | |
| 53553 | + | |
| 53554 | + | |
| 53555 | + | |
53548 | 53556 | | |
53549 | 53557 | | |
53550 | 53558 | | |
| |||
53573 | 53581 | | |
53574 | 53582 | | |
53575 | 53583 | | |
53576 | | - | |
| 53584 | + | |
| 53585 | + | |
| 53586 | + | |
| 53587 | + | |
| 53588 | + | |
| 53589 | + | |
| 53590 | + | |
53577 | 53591 | | |
53578 | 53592 | | |
53579 | 53593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62042 | 62042 | | |
62043 | 62043 | | |
62044 | 62044 | | |
62045 | | - | |
62046 | | - | |
| 62045 | + | |
62047 | 62046 | | |
62048 | 62047 | | |
62049 | 62048 | | |
| |||
62389 | 62388 | | |
62390 | 62389 | | |
62391 | 62390 | | |
| 62391 | + | |
| 62392 | + | |
| 62393 | + | |
| 62394 | + | |
| 62395 | + | |
| 62396 | + | |
| 62397 | + | |
| 62398 | + | |
| 62399 | + | |
62392 | 62400 | | |
62393 | 62401 | | |
62394 | 62402 | | |
| |||
62417 | 62425 | | |
62418 | 62426 | | |
62419 | 62427 | | |
62420 | | - | |
| 62428 | + | |
| 62429 | + | |
| 62430 | + | |
| 62431 | + | |
| 62432 | + | |
| 62433 | + | |
| 62434 | + | |
62421 | 62435 | | |
62422 | 62436 | | |
62423 | 62437 | | |
| |||
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
43 | 60 | | |
44 | 61 | | |
45 | 62 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
28 | 44 | | |
29 | 45 | | |
30 | 46 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | | - | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
| 196 | + | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
| |||
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5105 | 5105 | | |
5106 | 5106 | | |
5107 | 5107 | | |
5108 | | - | |
5109 | | - | |
| 5108 | + | |
5110 | 5109 | | |
5111 | 5110 | | |
5112 | 5111 | | |
| |||
5495 | 5494 | | |
5496 | 5495 | | |
5497 | 5496 | | |
| 5497 | + | |
| 5498 | + | |
| 5499 | + | |
| 5500 | + | |
| 5501 | + | |
| 5502 | + | |
| 5503 | + | |
| 5504 | + | |
| 5505 | + | |
| 5506 | + | |
| 5507 | + | |
| 5508 | + | |
| 5509 | + | |
| 5510 | + | |
| 5511 | + | |
| 5512 | + | |
| 5513 | + | |
| 5514 | + | |
| 5515 | + | |
5498 | 5516 | | |
5499 | 5517 | | |
5500 | 5518 | | |
| |||
5528 | 5546 | | |
5529 | 5547 | | |
5530 | 5548 | | |
5531 | | - | |
| 5549 | + | |
| 5550 | + | |
| 5551 | + | |
| 5552 | + | |
| 5553 | + | |
| 5554 | + | |
| 5555 | + | |
| 5556 | + | |
| 5557 | + | |
| 5558 | + | |
| 5559 | + | |
| 5560 | + | |
| 5561 | + | |
| 5562 | + | |
| 5563 | + | |
5532 | 5564 | | |
5533 | 5565 | | |
5534 | 5566 | | |
| |||
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4364 | 4364 | | |
4365 | 4365 | | |
4366 | 4366 | | |
4367 | | - | |
4368 | | - | |
| 4367 | + | |
4369 | 4368 | | |
4370 | 4369 | | |
4371 | 4370 | | |
| |||
4754 | 4753 | | |
4755 | 4754 | | |
4756 | 4755 | | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
4757 | 4775 | | |
4758 | 4776 | | |
4759 | 4777 | | |
| |||
4787 | 4805 | | |
4788 | 4806 | | |
4789 | 4807 | | |
4790 | | - | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
| 4813 | + | |
| 4814 | + | |
| 4815 | + | |
| 4816 | + | |
| 4817 | + | |
| 4818 | + | |
| 4819 | + | |
| 4820 | + | |
| 4821 | + | |
| 4822 | + | |
4791 | 4823 | | |
4792 | 4824 | | |
4793 | 4825 | | |
| |||
0 commit comments