cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger 3: Servers - prod doesnt conform to pattern

New Contributor

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

1 REPLY 1
Moderator

Re: Swagger 3: Servers - prod doesnt conform to pattern

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


Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
New Here?
Join us and watch the welcome video:
Watch the new Interview