diff --git a/CHANGELOG.md b/CHANGELOG.md index f7af04844..0ddbb0ded 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -137,6 +137,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Changed `ml.get_memory` and `ml.get_message` to split out `get_all` variants ([#796](https://github.com/opensearch-project/opensearch-api-specification/pull/796)) - Changed `ml.get_tools` to have two different operation groups `ml.get_all_tools` and `ml.get_tool` ([#799](https://github.com/opensearch-project/opensearch-api-specification/pull/799)) - Changed `FlowFrameworkDeleteResponse` to utilize `WriteResponseBase` ([#814](https://github.com/opensearch-project/opensearch-api-specification/pull/814)) +- Changed `DistanceFeatureQuery` and `RangeQuery` from (allOf + oneOf) to (oneOf + allOf) ([#865](https://github.com/opensearch-project/opensearch-api-specification/pull/865)) - Changed `ClusterJvm.versions`, `ClusterOperatingSystemName.name` and `ClusterOperatingSystemPrettyName.pretty_name` to not be required as AOS does not return them ([#866](https://github.com/opensearch-project/opensearch-api-specification/pull/866)) ## [0.1.0] - 2024-10-25 diff --git a/spec/schemas/_common.query_dsl.yaml b/spec/schemas/_common.query_dsl.yaml index 25044935d..5874fb72c 100644 --- a/spec/schemas/_common.query_dsl.yaml +++ b/spec/schemas/_common.query_dsl.yaml @@ -422,9 +422,9 @@ components: required: - queries DistanceFeatureQuery: - allOf: - - $ref: '#/components/schemas/QueryBase' - - oneOf: + oneOf: + - allOf: + - $ref: '#/components/schemas/QueryBase' - type: object properties: origin: @@ -437,6 +437,8 @@ components: - field - origin - pivot + - allOf: + - $ref: '#/components/schemas/QueryBase' - type: object properties: origin: @@ -1664,10 +1666,12 @@ components: required: - query RangeQuery: - allOf: - - $ref: '#/components/schemas/RangeQueryBase' - - oneOf: + oneOf: + - allOf: + - $ref: '#/components/schemas/RangeQueryBase' - $ref: '#/components/schemas/NumberRangeQueryParameters' + - allOf: + - $ref: '#/components/schemas/RangeQueryBase' - $ref: '#/components/schemas/DateRangeQueryParameters' DateRangeQueryParameters: type: object