-
Notifications
You must be signed in to change notification settings - Fork 37
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
scripts: add openapi checker #568
base: master
Are you sure you want to change the base?
Conversation
603d637
to
f7b3414
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works nicely! However, there are some things to consider:
- Currently, the solution is quite coupled to
reana-server
. It would be nice to make it more generic so that we could ideally reuse the same script forr-w-c
andr-j-c
. - Right now, the script fetches error codes from the
r-w-c
spec, which makes the code a bit complex and coupled. Do you think we would lose a lot of accuracy without this feature? Without it, it would be easier to use the script forr-w-c
andr-j-c
. - The code is quite complex, as I mentioned before. I think we could benefit from more comments so that it would be easier to tweak something later.
f7b3414
to
74d2c94
Compare
It is now possible to choose the flask app with the
This also depends on what we want this script to do: if we are only interested in checking "integer" status codes (e.g.
I've thought a bit on how to make the code better, but I am not sure how to achieve that. Do you have any suggestions? In any case, this is what has improved:
|
As this was mostly a prototype:
Finally, where should we put this script? In every repo like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really nice now! I think it's pretty useful already and errors/warnings are clear enough. Since it's already usable for r-w-c
, r-s
and r-j-c
we could simply keep it in reana-dev
as we do for reana_benchmark
script
Closes reanahub/reana#680