swagger-api / swagger-api/swagger-ui
No styles
Open
Nobody has claimed this yet.
type: support
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
I created a simple HTML file with unpkg link, but the page it generates totally lacks the styles:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js" charset="UTF-8"></script>
</head>
<body>
<div id="root"></div>
<script>
SwaggerUIBundle({
dom_id: '#root',
url: '/path/to/api.json',
// presets: [SwaggerUIBundle.presets.apis],
});
</script>
</body>
</html>

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
Start with the supplied HTML file and inspect whether the unpkg Swagger UI bundle and its styles load in the browser. Reproduce the page as shown, then determine the project change needed so the generated Swagger UI includes its styles; done means the page renders styled rather than unformatted.
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
- Needs clarification
- Newbie friendliness
- 30/100