-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp Swagger Spec to OpenAPI v3 (#365)
* Migrate to new swagger dist files. As of now, these are all local. Eventually will be delivered via CDN. * Update parse-globals defaultGlobals to reflect openapi 3.0.2 * Add comments on swagger-ui html * ifelse to switch * remove unused top level items in swagger and add a blank paths list * udpate rbuildignore * add download script for swagger-ui * add swagger-ui@3.20.2 * commit working code before gutting v2 spec * comment unused code * use new swagger wrapper function * use relative swagger.json url * relative url back one dir * try basic server info for cloud dev * use dynamic relative url given window.location information * schemes should not be in globals * use swagger pkg * clean up swagger creation * answer TODO about trailing slashes * use swagger::swagger_spec * have swagger params be done with a list and not a data.frame helps to know how it will be formatted exactly * do not allow asJSON to be passed into pr$swaggerFile() not necessary if we are switching to using lists and not data.frames * swagger endpoints will use list information and not clone r6 objects to then extract information * recursively remove NA and NULL values from swagger output Fixes #322 Fixes #323 See swagger-api/swagger-js#268 Thank you @Hong-Revo for a recursive blueprint in #323 * is.na(list()) returns NA. it should return FALSE * move param type to schema * add test to check swagger against a cli validator * add notes on how to install node.js pkg * remove ... from swaggerFile/openAPIFile * use swagger master v3.20.3.9999 * add a manual testing file for manual testing before release * add an index route to the static only plumber example * update example ot use addGlobalProcessor instead of registerHook * use `spec` and not `sf`for param name to swagger file fn * add expect_silent (or comment) test for tests that have no tests * run validation on all inst/examples for plumber * make sure basic http protocol is supplied to rstudio swaggerCallback * add news item and split to look like shiny's Co-authored-by: James Blair <james.m.blair09@gmail.com> Co-authored-by: Barret Schloerke <schloerke@gmail.com>"
- Loading branch information
Showing
16 changed files
with
385 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
^appveyor\.yml$ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
.travis.yml | ||
Dockerfile | ||
inst/analog-keys.R | ||
inst/examples/03-github/github-key.txt | ||
.httr-oauth | ||
docs | ||
scripts | ||
^\.travis\.yml$ | ||
^Dockerfile | ||
^inst/analog-keys.R | ||
^inst/examples/03-github/github-key.txt | ||
^\.httr-oauth | ||
^docs | ||
^scripts | ||
^revdep$ | ||
^cran-comments\.md$ | ||
^inst/swagger_ui/.*\.map | ||
^yarn\.lock$ | ||
^node_modules | ||
^package\.json$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ | |
.idea | ||
plumber.Rcheck | ||
plumber_*.tar.gz | ||
yarn.lock | ||
node_modules/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.