swagger-api / swagger-api/swagger-ui

Re-fetch schema, when auth token is updated

Open
#7,425 0 comments 2 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

Schema visible depends user rights. Schema is different per user. Refresh to fetch schema, when authorization is changed.
We need a configuration property reFetchSchemaOnAuthChanged as boolean type.

Example:

SwaggerUI({
  reFetchSchemaOnAuthChanged: 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

No files or tests are named. Start by locating the authentication-change handling and schema-fetch path, then trace where configuration properties are read; done means the documented boolean option causes the schema to be fetched again after authorization changes, with coverage for the enabled behavior.

Written by the indexing model from the issue text.

Assessment

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