cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger 3: Servers - prod doesnt conform to pattern

Highlighted
Occasional 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
Highlighted
Moderator

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


Helen Kosova
SmartBear Documentation Team Lead
________________________
Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements