Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Using SmartDocs "Try This" with OpenAPI 3 Server Variables

Hi all - wondering if someone can help us out.

We are using Server Variables to describe our server object, like so:

servers:
  - url: https://www.example.com/path/to/resource/{code}
    description: Production
    variables:
      code:
        default: default_code
        description: The <code> path variable will be provided to the developer

When I test the SmartDocs "Try This" functionality, this is the network path as shown in Chrome Dev tools:

Request URL: 
https://www.example.com/path/to/resource/%7Bcode%7D/resource/operation 

So it doesn't appear that SmartDocs is respecting the OpenAPI Server Variable.

I would expect it to pop up with a dialog and ask for input, but it just errors with "Unknown Error".

Thoughts?

0 3 577
3 REPLIES 3