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

How to stop autogeneration of swagger-json #257

Open
paragkulkarni opened this issue Jan 8, 2024 · 1 comment
Open

How to stop autogeneration of swagger-json #257

paragkulkarni opened this issue Jan 8, 2024 · 1 comment
Labels

Comments

@paragkulkarni
Copy link

I am searching for flag which stop swagger generation and used the custom json to generate swagger UI. Please let me know if I can use any flag to stop swagger generation json.

@Mairu
Copy link
Collaborator

Mairu commented Jan 9, 2024

Hi, the main goal of this library is to generate the specification.
If you don't need that functionality you should not use the libray in my opinion.

To host a swagger UI install the swagger-ui-dist package and use express-static or koa-static to host the contents. You may need to adjust the swagger-initializer.js to set the path to your specification file.

You can check https://github.com/feathersjs-ecosystem/feathers-swagger/blob/master/lib/swagger-ui-dist.js to see how the library is doing it, but in your case no dynamic content should be needed.

You could also checkout https://github.com/wucf93/koa-swagger-ui-plus or https://github.com/scottie1984/swagger-ui-express

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

No branches or pull requests

2 participants