Open kurt-o-sys opened 3 years ago
you can use pr()
instead of Plumber$new
What if you do not use swagger spec at all?
My guess is that there is a problem with the swagger doc as the server was able to start.
put a browser()
in there and run each line to find the culprit.
@kurt-o-sys I think I've got you, your swagger functions should only have one parameter, which is the spec.
"a function that accepts the OpenAPI Specification autogenerated by plumber
and returns a OpenAPI Specification formatted list object."
Let me find an example: https://www.rplumber.io/reference/pr_set_api_spec.html
In your case, your swagger provided function has two parameters, pr_
and spec
spec
is left empty as it is unused, the actual spec will be mapped to pr_
when the call happens.
@kurt-o-sys Does this resolve your issue?
I've got a project and I updated to the latest plumber version. I updated the
plumber
calls toPlumber
:All seemed fine, until I tried to start my server (
startServer()
):which results in
I say I needed to move/remove the
swagger
parameter. When I remove theswagger
parameter (or move it torouter$setApiSpec
I still have the same issue. What am I missing?