Validate an OpenAPI Spec using Swagger CLI which calls Swagger Parser.
validate_api_spec(pr, verbose = TRUE)
A Plumber API
Logical that determines if a "is valid" statement is displayed. Defaults to TRUE
TRUE
If the api is deemed invalid, an error will be thrown.
This function is VERY experimental and may be altered, changed, or removed in the future.
# NOT RUN { pr <- plumb_api("plumber", "01-append") validate_api_spec(pr) # }
Run the code above in your browser using DataCamp Workspace