Forum Discussion

mcrobbj's avatar
mcrobbj
Occasional Contributor
6 years ago

Swagger 3: Servers - prod doesnt conform to pattern

My route to live environments all follow a standard pattern, however prod doesnt conform is there anyway to change it for prod?

servers:

- url: https://{environment}.mywebsite.com/myendpoint

  variables:

    environment:

      default: api.sit # SIT server

      enum:

        - api.dev # Development server - https://{environment}.mywebsite.cloud/myendpoint

        - api.sit # SITserver - https://{environment}.mywebsite.cloud/myendpoint

        - api.uat # UATserver - https://{environment}.mywebsite.cloud/myendpoint

        - api.ppe # PPEserver - https://{environment}.mywebsite.cloud/myendpoint

        - api # Production server (  https://api.mywebsite.com/myendpoint

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    You can add the production server as a separate item in the servers list.