Skip to content

Commit

Permalink
Parser params should be in a list() (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke authored Sep 7, 2021
1 parent 7752917 commit 85a7f99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/openapi-types.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ add_api_info_onLoad <- function() {
)
addApiInfo(
"object",
c("list", "data.frame", "df"),
c("list", "data.frame", "df", "object"),
location = "requestBody"
)
addApiInfo(
Expand Down
2 changes: 1 addition & 1 deletion R/parse-body.R
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ make_parser <- function(aliases) {
#' @examples
#' \dontrun{
#' # Overwrite `text/json` parsing behavior to not allow JSON vectors to be simplified
#' #* @parser json simplifyVector = FALSE
#' #* @parser json list(simplifyVector = FALSE)
#' # Activate `rds` parser in a multipart request
#' #* @parser multi
#' #* @parser rds
Expand Down
2 changes: 1 addition & 1 deletion man/parsers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85a7f99

Please sign in to comment.