diff --git a/CHANGELOG.md b/CHANGELOG.md index 350c17fe3..880c8a949 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,9 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Fixed `ml._common.yaml#SearchModelsResponse` and `SearchModelsHitsHit` ([#672](https://github.com/opensearch-project/opensearch-api-specification/pull/672)) - Fixed `refresh` options to allow `boolean` and `string` ([#673](https://github.com/opensearch-project/opensearch-api-specification/pull/673)) +### Changed +- Changed `tasks._common:TaskInfo` and `tasks._common:TaskGroup` to be composed of a `tasks._common:TaskInfoBase` ([#683](https://github.com/opensearch-project/opensearch-api-specification/pull/683)) + ## [0.1.0] - 2024-10-25 ### Added diff --git a/spec/schemas/tasks._common.yaml b/spec/schemas/tasks._common.yaml index eed56d652..55502dfeb 100644 --- a/spec/schemas/tasks._common.yaml +++ b/spec/schemas/tasks._common.yaml @@ -35,7 +35,7 @@ components: $ref: '#/components/schemas/TaskInfo' required: - tasks - TaskInfo: + TaskInfoBase: type: object properties: action: @@ -76,6 +76,11 @@ components: - running_time_in_nanos - start_time_in_millis - type + TaskInfo: + allOf: + - $ref: '#/components/schemas/TaskInfoBase' + - type: object + properties: {} TaskInfos: oneOf: - title: grouped_by_none @@ -88,7 +93,7 @@ components: $ref: '#/components/schemas/TaskGroup' TaskGroup: allOf: - - $ref: '#/components/schemas/TaskInfo' + - $ref: '#/components/schemas/TaskInfoBase' - type: object properties: children: