swagger-api / swagger-api/swagger-ui

Support for a relative url parameter is not complete in 3.0.7

Open
#2,978 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cat: user experience P2 type: bug version: 3.x
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Hi, when I enter a relative 'url' parameter in a browser, when requesting Swagger UI (3.0.7), I still see 3 minor issues:

  1. Relative url value is still shown the Explore window, in UI 2.x it was correctly converted to the absolute URL
  2. Application Link text (directly under a [Base url ...]) still shows a relative url, while the actual link value is correct
  3. Online Validator fails because a relative url is submitted to it

I can provide the attachments if it can help, thanks

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

Start by reproducing the relative url parameter behavior in Swagger UI 3.0.7. Trace how that value is displayed in the Explore window and Application Link and submitted to the Online Validator; done means all three use the expected absolute URL behavior described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
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.