Skip to content

Commit

Permalink
Fixed schema validation for invalid properties in retry configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Nathalie Jonathan <[email protected]>
  • Loading branch information
nathaliellenaa committed Dec 31, 2024
1 parent a3849b4 commit c521adb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed type in `_msearch/template` ([#735](https://github.com/opensearch-project/opensearch-api-specification/pull/735))
- Fixed indices API schemas ([#750](https://github.com/opensearch-project/opensearch-api-specification/pull/750))
- Fixed cluster API schemas ([#754](https://github.com/opensearch-project/opensearch-api-specification/pull/754))
- Fixed schema validation for invalid properties in `retry` configuration ([#X](https://github.com/opensearch-project/opensearch-api-specification/pull/X))

### Changed
- Changed `tasks._common:TaskInfo` and `tasks._common:TaskGroup` to be composed of a `tasks._common:TaskInfoBase` ([#683](https://github.com/opensearch-project/opensearch-api-specification/pull/683))
Expand Down
22 changes: 11 additions & 11 deletions json_schemas/test_story.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ definitions:
Retry:
description: |
Number of times to retry on error.
oneOf:
- type: object
properties:
count:
type: integer
description: Number of retries.
wait:
type: integer
description: Number of milliseconds to wait before retrying.
required:
- count
type: object
properties:
count:
type: integer
description: Number of retries.
wait:
type: integer
description: Number of milliseconds to wait before retrying.
required:
- count
additionalProperties: false

Request:
type: object
Expand Down

0 comments on commit c521adb

Please sign in to comment.