Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapi: add missing run_number field to start_workflow response #637

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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