I'm using the current latest version of plumber installed from github (this example is simplified to get the main point across).
For context, I've created an R plumber API and am hosting it on Google Cloud Run (https://cloud.google.com/run).
Now I want to create a Google two factor authentication using Cloud Endpoints | Google Cloud. This involves editing the the swagger configuration (because it doesn't match up with how Google Endpoints expects it to be i.e. swagger 2.0 and not openapi 3.0). I've tried running this locally and on a VM with the same output.
There are three different ways of specifying api within pr_set_api_spec(). I've tried them all with the swagger configuration I need and servers always persists when it's not there in a yaml file or a list object.