swagger-api / swagger-api/swagger-ui

Query parameters and path variables are not read

Open
#5,119 18 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: support
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Q&A
  • OS: linux
  • Browser:chrome
  • Version: 70.0.3538.77
  • Method of installation: npm
  • Swagger-UI version: 3.20.4
  • Swagger/OpenAPI version:"swagger":"2.0"

Not extra configuration used.

To reproduce...

Steps to reproduce the behavior:

  1. Go to main page
  2. Click on any service
  3. Click on 'try it out' and complete a query parameter or path variable
  4. Click on execute
  5. See query parameter or path variable is not in generated curl and not used to call service and input field is empty.
Expected behavior

parameter or path variable is in generated curl

Before execute

captura

After

captura2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the problem in Swagger UI 3.20.4 with a Swagger 2.0 service by using Try it out with a query parameter or path variable. Trace the request and generated curl handling, then verify that the entered value appears in the curl command and is sent to the service.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.