View source: R/validate_api_spec.R
validate_api_spec | R Documentation |
Validate an OpenAPI Spec using @redocly/cli
.
validate_api_spec(
pr,
...,
ruleset = c("minimal", "recommended", "recommended-strict"),
verbose = TRUE
)
pr |
A Plumber API |
... |
Ignored |
ruleset |
Character that determines the ruleset to use for validation. Can be one of "minimal", "recommended",
or "recommended-strict". Defaults to "minimal". See |
verbose |
Logical that determines if a "is valid" statement is displayed. Defaults to |
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.
## Not run:
pr <- plumb_api("plumber", "01-append")
validate_api_spec(pr)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.