swagger-api / swagger-api/swagger-ui
Re-fetch schema, when auth token is updated
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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