Skip to content

Commit 387ff60

Browse files
authored
tags argument is list in openapi_operation() rather than a character (#34)
1 parent 83cc4a2 commit 387ff60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/spec_constructor.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#' are lists as constructed by `openapi_path()`
1515
#' @param tags For `openapi()` a list with elements corresponding to the value
1616
#' constructed by `openapi_tag()`. For `openapi_operation()` this argument is a
17-
#' simple character vector
17+
#' list, too.
1818
#'
1919
#' @return A list
2020
#'
@@ -157,7 +157,7 @@ openapi_operation <- function(
157157
parameters = list(),
158158
request_body = openapi_request_body(),
159159
responses = list(),
160-
tags = character()
160+
tags = list()
161161
) {
162162
if (!(is_list(responses) && is_named2(responses))) {
163163
cli::cli_abort("{.arg responses} must be a named list")

man/openapi.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)