-
Notifications
You must be signed in to change notification settings - Fork 474
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
Swagger UI options not working after upgrading to v7 #2481
Comments
I temporarily reverted back to v4 (in @flamewow would you take a look at what would it take to upgrade |
I am having a similar issue with other settings in This is the code in question. I tried updating to 7.0.1 but this did not fix the issue. app.useStaticAssets(path.resolve(__dirname, '..', 'public'));
const config = new DocumentBuilder()
.setTitle('The Douglas Data Bank')
.setDescription('Documentation for the Douglas Data Bank API')
.setLicense('AGPL-3.0', 'https://www.gnu.org/licenses/agpl-3.0.txt')
.setVersion('1.0')
.addTag('Auth')
.build();
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('/', app, document, {
customCssUrl: '/swagger.css',
customfavIcon: '/favicon.ico',
customSiteTitle: 'The Douglas Data Bank API'
}); |
Okay I figured out the issue I will make a PR |
Fixed in 7.0.2 |
Hello, I observed that the merge [#2487] aimed at addressing the custom assets injection issue has been reverted in subsequent releases, which seems to have brought back the initial problem. Could you shed some light on the rationale behind reverting this merge? Additionally, is there an alternative solution or a planned fix for the custom assets injection issue in upcoming releases? I appreciate your attention to this matter and look forward to any information you can provide. Thank you. |
Is there an existing issue for this?
Current behavior
It seems that after the upgrade to v7.0.0 the options no longer work. I have checked the docs for swagger-ui v5 but I cannot see the differences in the options.
Swagger UI renders with default settings:
Minimum reproduction code
Steps to reproduce
Expected behavior
It should be the same as in v6.
Package version
7.0.0
NestJS version
10.0.0
Node.js version
18.14.2
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: