There is very limited documentation for the allowable decorations in plumber markup. For instance, I'm struggling to get Swagger to correctly annotate the payload of a @post request.
- name: payload
required: true
in: body
schema:
$ref: '#...'
None of the given examples, or anything I've thought to try, match the correctness of the corresponding curl request.
From the examples:
#' @post /user
function(req, id, name){
list(
id = id,
name = name,
raw = req$postBody
)
}
produces an API that responds correctly to the curl request
curl --data "id=123&name=Jennifer" "http://localhost:8000/user"
but the Swagger page doesn't create the correct payload parameter.
What am I missing?