Skip to content

Commit

Permalink
fix(specs): add primary to get settings response (#3415)
Browse files Browse the repository at this point in the history
  • Loading branch information
kai687 committed Jul 25, 2024
1 parent eb47f18 commit 200f07e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions specs/search/common/schemas/SettingsResponse.yml
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion specs/search/paths/settings/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 200f07e

Please sign in to comment.