Skip to content
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

Inject plugin #110

Open
splendid25 opened this issue Apr 21, 2022 · 1 comment
Open

Inject plugin #110

splendid25 opened this issue Apr 21, 2022 · 1 comment

Comments

@splendid25
Copy link

Hi,

I'm trying to add a plugin to swagger-ui, like so : swagger-api/swagger-ui#3876 (comment)

I can inject a custom javascript for the plugin, but I can't find a way to inject it to the plugin list in the SwaggerUIBundle method.

const ui = SwaggerUIBundle({
	//...
	plugins: [ SwaggerUIBundle.plugins.DownloadUrl ], //=> how to customise ?
	//...
});

Is it possible ?
Thanks

@heldersepu
Copy link
Owner

Yes that sounds about right...
I never tried that myself, this is the file you will need to change:

plugins: [ SwaggerUIBundle.plugins.DownloadUrl ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants