[8.12] [ILM] Add missing deprecated param to API schema (#175440) (#175862)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[ILM] Add missing deprecated param to API schema
(#175440)](https://github.com/elastic/kibana/pull/175440)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ignacio
Rivas","email":"rivasign@gmail.com"},"sourceCommit":{"committedDate":"2024-01-30T06:11:26Z","message":"[ILM]
Add missing deprecated param to API schema
(#175440)","sha":"6fea1ace880e03cb38d4dad0195b136ce2659b3a","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:ILM","Team:Deployment
Management","release_note:skip","v8.12.1","v8.13.0"],"title":"[ILM] Add
missing deprecated param to API
schema","number":175440,"url":"https://github.com/elastic/kibana/pull/175440","mergeCommit":{"message":"[ILM]
Add missing deprecated param to API schema
(#175440)","sha":"6fea1ace880e03cb38d4dad0195b136ce2659b3a"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175440","number":175440,"mergeCommit":{"message":"[ILM]
Add missing deprecated param to API schema
(#175440)","sha":"6fea1ace880e03cb38d4dad0195b136ce2659b3a"}}]}]
BACKPORT-->

Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
This commit is contained in:
Kibana Machine 2024-01-30 04:10:43 -05:00 committed by GitHub
parent 3b4bffee0f
commit cf8d3ce713
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,7 @@ async function createPolicy(
*/
const bodySchema = schema.object({
name: schema.string(),
deprecated: schema.maybe(schema.boolean()),
phases: schema.object({
hot: schema.any(),
warm: schema.maybe(schema.any()),