Skip to content

Commit

Permalink
openapi: add missing run_number field to start_workflow response
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Nov 6, 2023
1 parent 58f0261 commit fae7c49
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changes
=======

Version 0.9.2 (UNRELEASED)
--------------------------

- Changes the OpenAPI specification of the ``start_workflow`` endpoint's response to add missing ``run_number`` field.
- Fixes the ``start_workflow`` endpoint by changing the type of the ``run_number`` response field from a number to a string, in order to support restarting a workflow more than nine times.

Version 0.9.1 (2023-09-27)
--------------------------

Expand Down
3 changes: 3 additions & 0 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3234,6 +3234,9 @@
"message": {
"type": "string"
},
"run_number": {
"type": "string"
},
"status": {
"type": "string"
},
Expand Down
2 changes: 2 additions & 0 deletions reana_server/rest/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,8 @@ def start_workflow(workflow_id_or_name, user): # noqa
type: string
status:
type: string
run_number:
type: string
user:
type: string
examples:
Expand Down

0 comments on commit fae7c49

Please sign in to comment.