Skip to content

Commit 200f07e

Browse files
authored
fix(specs): add primary to get settings response (#3415)
1 parent eb47f18 commit 200f07e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
settingsResponse:
2+
allOf:
3+
- $ref: '../../../common/schemas/IndexSettings.yml#/indexSettings'
4+
- $ref: '#/WithPrimary'
5+
6+
WithPrimary:
7+
type: object
8+
additionalProperties: false
9+
properties:
10+
primary:
11+
type: string
12+
description: |
13+
Replica indices only: the name of the primary index for this replica.

specs/search/paths/settings/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ get:
1414
content:
1515
application/json:
1616
schema:
17-
$ref: '../../../common/schemas/IndexSettings.yml#/indexSettings'
17+
$ref: '../../common/schemas/SettingsResponse.yml#/settingsResponse'
1818
'400':
1919
$ref: '../../../common/responses/BadRequest.yml'
2020
'402':

0 commit comments

Comments
 (0)