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 516
3 REPLIES 3

Hi Kerry,

Multiple server URLs and Server Variables are supported in the Spec Editor, but unfortunately, they are not currently supported in either the Drupal or Integrated portals. It's being worked.

Hi Kurt - Thanks for the info.

Any updates on this?

Regards

I am also using smart docs, it is a helpful software