Skip to content

Commit

Permalink
[8.12] [ILM] Add missing deprecated param to API schema (#175440) (#1…
Browse files Browse the repository at this point in the history
…75862)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[ILM] Add missing deprecated param to API schema
(#175440)](#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":"[email protected]"},"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 <[email protected]>
  • Loading branch information
kibanamachine and sabarasaba authored Jan 30, 2024
1 parent 3b4bffe commit cf8d3ce
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit cf8d3ce

Please sign in to comment.