View source: R/validate_api_spec.R
validate_api_spec | R Documentation |
Validate an OpenAPI Spec using Swagger CLI which calls Swagger Parser.
validate_api_spec(pr, verbose = TRUE)
pr |
A Plumber API |
verbose |
Logical that determines if a "is valid" statement is displayed. Defaults to |
If the api is deemed invalid, an error will be thrown.
This function is VERY \lifecycleexperimental 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.