Validate an OpenAPI Spec using @redocly/cli
.
validate_api_spec(
pr,
...,
ruleset = c("minimal", "recommended", "recommended-strict"),
verbose = TRUE
)
A Plumber API
Ignored
Character that determines the ruleset to use for validation. Can be one of "minimal", "recommended",
or "recommended-strict". Defaults to "minimal". See @redocly/cli
options for more details.
Logical that determines if a "is valid" statement is displayed. Defaults to TRUE
If any warning or error is presented, an error will be thrown.
This function is and may be altered, changed, or removed in the future.
if (FALSE) { # \dontrun{
pr <- plumb_api("plumber", "01-append")
validate_api_spec(pr)
} # }