From 799d04622aeddce7b697665d63a29fc049e5088e Mon Sep 17 00:00:00 2001 From: "Theo N. Truong" Date: Tue, 21 Jan 2025 17:41:19 -0700 Subject: [PATCH] Corrected GeoDistanceSort schema (#805) Signed-off-by: Theo Truong --- CHANGELOG.md | 1 + spec/schemas/_common.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6353c258..b90de9cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -104,6 +104,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Fixed CAT API schemas ([#769](https://github.com/opensearch-project/opensearch-api-specification/pull/769)) - Fixed core API schemas ([#777](https://github.com/opensearch-project/opensearch-api-specification/pull/777)) - Fixed Memory Circuit Breaker flaky error in ML APIs ([#788](https://github.com/opensearch-project/opensearch-api-specification/pull/788)) +- Fixed GeoDistanceSort schema ([#805](https://github.com/opensearch-project/opensearch-api-specification/pull/805)) - Fixed Aggregation schemas([#801](https://github.com/opensearch-project/opensearch-api-specification/pull/801)) ### Changed diff --git a/spec/schemas/_common.yaml b/spec/schemas/_common.yaml index 3ddcbdaa..6a50f39c 100644 --- a/spec/schemas/_common.yaml +++ b/spec/schemas/_common.yaml @@ -650,6 +650,10 @@ components: $ref: '#/components/schemas/SortOrder' unit: $ref: '#/components/schemas/DistanceUnit' + additionalProperties: + type: array + items: + $ref: '#/components/schemas/GeoLocation' SortMode: type: string enum: