swagger-api / swagger-api/swagger-ui
operationsSorter and tagsSorter in swagger-ui-react
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
Content & configuration
import SwaggerUI from "swagger-ui-react";
return (
<SwaggerUI url="api.json"/>
)
Is your feature request related to a problem?
I can't find any way to set an operationsSorter or tagsSorter in swagger-ui-react. They are not exposed as props.
Describe the solution you'd like
A way to sort by operations and tags.
Describe alternatives you've considered
I tried using a swagger-config.yaml config file in the react project root as well, but it doesn't seem to do anything.
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 at the swagger-ui-react entry point used by the component and inspect how component props and swagger-config.yaml are handled. Trace where operationsSorter and tagsSorter are accepted, then verify that the rendered API documentation sorts operations and tags when those options are supplied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100