APIDevTools / swagger-cli

Swagger 2.0 and OpenAPI 3.0 command-line tool
https://apitools.dev/swagger-cli
MIT License
517 stars 68 forks source link

How to set servers": [] and urls? #47

Open woeterman94 opened 4 years ago

woeterman94 commented 4 years ago

Is there a way to pass the server object or a base url? I need this in my swagger file for Azure gateway. Like this:

  "servers": [
    {
      "url": "__API-SCHEME__://__API-URL__"
    }
  ],

see https://swagger.io/specification/#server-object