Skip to content

Commit 9eff69a

Browse files
committed
Allow nullable lifecycle and data_retention template values
These keys allow using an explicit `null` as the value to "unset" the configuration when merging multiple component templates. As related to the merging tables seen in elastic/elasticsearch#95979 (comment) Relates also to the discussion in #2049
1 parent 86b3c63 commit 9eff69a

File tree

4 files changed

+38
-14
lines changed

4 files changed

+38
-14
lines changed

output/schema/schema.json

+34-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/indices/_types/DataLifecycle.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { ByteSize } from '@_types/common'
2525
* Data lifecycle denotes that a data stream is managed by DLM and contains the configuration.
2626
*/
2727
export class DataLifecycle {
28-
data_retention?: Duration
28+
data_retention?: Duration | null
2929
}
3030

3131
/**

specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ export class IndexTemplateMapping {
6666
* @availability stack since=8.8.0 stability=experimental
6767
* @availability serverless stability=experimental
6868
*/
69-
lifecycle?: DataLifecycle
69+
lifecycle?: DataLifecycle | null
7070
}

0 commit comments

Comments
 (0)