Skip to content

Commit

Permalink
Extract TaskInfoBase
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia committed Nov 20, 2024
1 parent a22a61d commit c9a85b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions spec/schemas/tasks._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ components:
$ref: '#/components/schemas/TaskInfo'
required:
- tasks
TaskInfo:
TaskInfoBase:
type: object
properties:
action:
Expand Down Expand Up @@ -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
Expand All @@ -88,7 +93,7 @@ components:
$ref: '#/components/schemas/TaskGroup'
TaskGroup:
allOf:
- $ref: '#/components/schemas/TaskInfo'
- $ref: '#/components/schemas/TaskInfoBase'
- type: object
properties:
children:
Expand Down

0 comments on commit c9a85b6

Please sign in to comment.