swagger-api / swagger-api/swagger-ui

The query string 'url' and 'filter' are invalid

Open
#7,983 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

when I use docker.io/swaggerapi/swagger-ui:v4.1.2, I can use http://domain?url=xxx.yaml&filter=true to directly access xxx.yaml when opening the page, and display the filter.

from docker.io/swaggerapi/swagger-ui:v4.1.3 to docker.io/swaggerapi/swagger-ui:v4.10.3, the query string 'url' and 'filter' are invalid.

  • OS: macOS
  • Browser: firefox
  • Version: 99.0.1
  • Method of installation: docker
  • Swagger-UI version: 4.1.3 to 4.10.3
  • Swagger/OpenAPI version: OpenAPI 3.0

?yourQueryStringConfig

?url=path_to_yaml_url&filter=true

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 behavior with the Docker images from v4.1.2 through v4.10.3 using ?url=path_to_yaml_url&filter=true in Firefox. Compare the query-string behavior across versions and trace the Swagger UI entry point that handles these parameters. Done means both parameters load the YAML and display the filter as they did in v4.1.2.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.