Skip to content

Commit eaf4bf8

Browse files
authored
Changed ErrorCause schema header type to map (#983)
* Changed schema header type to map Signed-off-by: xil <[email protected]>
1 parent 4b20cc0 commit eaf4bf8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
199199
- Changed `ScriptedMetricAggregate` value from true to {} ([#892](https://github.com/opensearch-project/opensearch-api-specification/pull/892))
200200
- Changed `WaitForActiveShards` to utilize `StringifiedInteger` ([#896](https://github.com/opensearch-project/opensearch-api-specification/pull/896))
201201
- Changed `NeuralStats` schema validation from `oneOf` to `anyOf` ([#900](https://github.com/opensearch-project/opensearch-api-specification/pull/900))
202+
- Changed `ErrorCause` schema header type to map ([#982](https://github.com/opensearch-project/opensearch-api-specification/pull/982))
202203

203204
## [0.1.0] - 2024-10-25
204205

spec/schemas/_common.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,9 @@ components:
360360
items:
361361
$ref: '#/components/schemas/ErrorCause'
362362
header:
363-
oneOf:
364-
- type: string
365-
- type: array
366-
items:
367-
type: string
363+
type: object
364+
additionalProperties:
365+
$ref: '#/components/schemas/StringOrStringArray'
368366
required:
369367
- type
370368
additionalProperties:

0 commit comments

Comments
 (0)