From 200f07e9cfc0b6dce090496a41e67247f38e0e10 Mon Sep 17 00:00:00 2001 From: Kai Welke Date: Thu, 25 Jul 2024 14:54:50 +0200 Subject: [PATCH] fix(specs): add primary to get settings response (#3415) --- specs/search/common/schemas/SettingsResponse.yml | 13 +++++++++++++ specs/search/paths/settings/settings.yml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 specs/search/common/schemas/SettingsResponse.yml diff --git a/specs/search/common/schemas/SettingsResponse.yml b/specs/search/common/schemas/SettingsResponse.yml new file mode 100644 index 0000000000..1e8815d55b --- /dev/null +++ b/specs/search/common/schemas/SettingsResponse.yml @@ -0,0 +1,13 @@ +settingsResponse: + allOf: + - $ref: '../../../common/schemas/IndexSettings.yml#/indexSettings' + - $ref: '#/WithPrimary' + +WithPrimary: + type: object + additionalProperties: false + properties: + primary: + type: string + description: | + Replica indices only: the name of the primary index for this replica. diff --git a/specs/search/paths/settings/settings.yml b/specs/search/paths/settings/settings.yml index 3f2e3512f2..e2fe69f742 100644 --- a/specs/search/paths/settings/settings.yml +++ b/specs/search/paths/settings/settings.yml @@ -14,7 +14,7 @@ get: content: application/json: schema: - $ref: '../../../common/schemas/IndexSettings.yml#/indexSettings' + $ref: '../../common/schemas/SettingsResponse.yml#/settingsResponse' '400': $ref: '../../../common/responses/BadRequest.yml' '402':