Skip to content

Commit 0e7c511

Browse files
committed
Fix flow framework provision response status code
Signed-off-by: Thomas Farr <[email protected]>
1 parent 51ed97a commit 0e7c511

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
125125
- Fixed Aggregation schemas ([#801](https://github.com/opensearch-project/opensearch-api-specification/pull/801))
126126
- Fixed FilterQueryRequestProcessor to use correct query type ([#821](https://github.com/opensearch-project/opensearch-api-specification/pull/821))
127127
- Fixed `knn.train_model`'s request body `method` field to accept an object rather than a string ([#814](https://github.com/opensearch-project/opensearch-api-specification/pull/814))
128-
- Fixed REST status codes for RBAC and provisioning for Flow Framework plugin ([#842](https://github.com/opensearch-project/opensearch-api-specification/pull/842))
129-
- Fixed swapped schema references in nodes info API buffer fields([#808](https://github.com/opensearch-project/opensearch-api-specification/pull/808))
128+
- Fixed REST status codes for RBAC and provisioning for Flow Framework plugin ([#842](https://github.com/opensearch-project/opensearch-api-specification/pull/842), [#852](https://github.com/opensearch-project/opensearch-api-specification/pull/852))
129+
- Fixed swapped schema references in nodes info API buffer fields ([#808](https://github.com/opensearch-project/opensearch-api-specification/pull/808))
130130

131131
### Changed
132132
- 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))

spec/namespaces/flow_framework.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ paths:
156156
$ref: '#/components/requestBodies/flow_framework.provision'
157157
responses:
158158
'200':
159+
x-version-removed: '3.0'
159160
$ref: '#/components/responses/flow_framework.provision@200'
161+
'202':
162+
x-version-added: '3.0'
163+
$ref: '#/components/responses/flow_framework.provision@202'
160164
'403':
161165
$ref: '#/components/responses/flow_framework.provision@403'
162166
'400':
@@ -517,6 +521,11 @@ components:
517521
application/json:
518522
schema:
519523
$ref: '../schemas/flow_framework.common.yaml#/components/schemas/WorkflowIDResponse'
524+
flow_framework.provision@202:
525+
content:
526+
application/json:
527+
schema:
528+
$ref: '../schemas/flow_framework.common.yaml#/components/schemas/WorkflowIDResponse'
520529
flow_framework.deprovision@202:
521530
content:
522531
application/json:

tests/default/flow_framework/workflow/deprovision.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ prologues:
1111
request:
1212
payload:
1313
create_connector.credential.key: test_api_key
14+
status: [200, 202]
1415
output:
1516
workflow_id: payload.workflow_id
1617
epilogues:

0 commit comments

Comments
 (0)