Skip to content

Commit 601d341

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

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ paths:
2323
responses:
2424
'201':
2525
$ref: '#/components/responses/flow_framework.create@201'
26+
'202':
27+
x-version-added: '3.0'
28+
$ref: '#/components/responses/flow_framework.create@202'
2629
'403':
2730
$ref: '#/components/responses/flow_framework.create@403'
2831
'400':
@@ -156,7 +159,11 @@ paths:
156159
$ref: '#/components/requestBodies/flow_framework.provision'
157160
responses:
158161
'200':
162+
x-version-removed: '3.0'
159163
$ref: '#/components/responses/flow_framework.provision@200'
164+
'202':
165+
x-version-added: '3.0'
166+
$ref: '#/components/responses/flow_framework.provision@202'
160167
'403':
161168
$ref: '#/components/responses/flow_framework.provision@403'
162169
'400':
@@ -393,6 +400,17 @@ components:
393400
description: The ID of the workflow to be updated. Required for the PUT method.
394401
required:
395402
- workflow_id
403+
flow_framework.create@202:
404+
content:
405+
application/json:
406+
schema:
407+
type: object
408+
properties:
409+
workflow_id:
410+
type: string
411+
description: The ID of the workflow to be updated. Required for the PUT method.
412+
required:
413+
- workflow_id
396414
flow_framework.create@403:
397415
content:
398416
application/json:
@@ -517,6 +535,11 @@ components:
517535
application/json:
518536
schema:
519537
$ref: '../schemas/flow_framework.common.yaml#/components/schemas/WorkflowIDResponse'
538+
flow_framework.provision@202:
539+
content:
540+
application/json:
541+
schema:
542+
$ref: '../schemas/flow_framework.common.yaml#/components/schemas/WorkflowIDResponse'
520543
flow_framework.deprovision@202:
521544
content:
522545
application/json:

tests/default/flow_framework/workflow/deprovision.yaml

Lines changed: 1 addition & 0 deletions
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: [201, 202]
1415
output:
1516
workflow_id: payload.workflow_id
1617
epilogues:

0 commit comments

Comments
 (0)