Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

displayRequestDuration is not working as expected #5665

Open
adamtheapiguy opened this issue Oct 17, 2019 · 1 comment
Open

displayRequestDuration is not working as expected #5665

adamtheapiguy opened this issue Oct 17, 2019 · 1 comment

Comments

@adamtheapiguy
Copy link

adamtheapiguy commented Oct 17, 2019

Q&A (please complete the following information)

  • OS: macOS
  • Browser: firefox for developers
  • Version: 71.0b1 (64-bit)
  • Method of installation: npm
  • Swagger-UI version: 3.24.0
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

Swagger-UI configuration options:

% cat swagger-config.yaml
---
url: "https://petstore.swagger.io/v2/swagger.json"
dom_id: "#swagger-ui"
validatorUrl: "https://validator.swagger.io/validator"
displayRequestDuration: true
% 

Describe the bug you're encountering

after adding displayRequestDuration to swagger-config.yaml as per the above and did the build using 'npm run build', and deployed new swagger-ui files:

The request duration is not showing when I use the try it out feature

To reproduce...

Steps to reproduce the behavior:

  1. Update file swagger-config.yaml to add "displayRequestDuration: true"
  2. run "npm run build"
  3. copy files under list/ directory to your website location
  4. Open your OAS and use try it out feature then check in the response and you would see that there is no "request duration" box.

Expected behavior

I expect that request duration section appears in try it out feature.

Screenshots

Screen Shot 2019-10-17 at 9 13 57 PM

Additional context or thoughts

@hkosova
Copy link
Contributor

hkosova commented Mar 29, 2020

This is probably caused by #5148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants