-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to enable deepLinking when using swagger-ui-react #5580
Comments
I want to notice that adding the I've seen in this docs that it is also possible to pass config by having a swagger-config.yaml file in the root of the project. Does that mean in the document root? Is swagger-ui going to try to fetch it? |
For the moment, I'm using my own implementation of the component. I can provide a PR if you want to officialy support this option at some point. |
@acelaya Hi, can you make your solution available to me? I would also like to include deeplinking in my swagger ui component. |
Sure @volbrene I copied the component and exposed a new prop, that's it. It should be easy to add to the official codebase. |
Thanks, but I have no understanding why the official people don't react to this.. because its so easy to implement it.... But it's great of you to show me the solution. |
Well, I can imagine it could have some side effects and it could be hard to make it compatible with pages including other components. In my case, the swagger UI is mostly everything in the page, so it's ok to have this, but there's probably many other use cases. At the end of the day OSS maintainers need to carefully decide which features they want to maintain. |
Leaving a comment here for anyone else who may be wondering about Official support for According to the release information, seems like starting in Note that @tim-lai I think this issue can be closed, but maybe one needs to be opened for the TypeScript changes? |
Thanks for letting us know @samarthd |
I have just tested it with latest swagger-ui-react, and it works perfectly. I was able to drop the component I was maintaining myself 🙂 Also, at the moment of writing this, So closing this. |
Q&A (please complete the following information)
Swagger-UI configuration options:
How can we help?
I'm trying to use swagger-ui-react inside a react application and according to the documentation, it seems the amount of supported options is quite reduced compared to what swagger-ui supports.
I was specially trying to enable deeplinking, but apparently any prop other than the 5 which are documented are ignored.
Is there any way to define these props?
The text was updated successfully, but these errors were encountered: