Skip to content

Commit

Permalink
chore(backend): update Swagger config/version
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Nov 3, 2024
1 parent d546e67 commit 444fe49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions backend/src/api/setup-swagger.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { INestApplication } from "@nestjs/common";
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
import { DocumentBuilder, OpenAPIObject, SwaggerModule } from "@nestjs/swagger";

export function provideSwagger(app: INestApplication): void {
const config = new DocumentBuilder()
.setLicense("GPL-3.0", "https://www.gnu.org/licenses/gpl-3.0.html")
.setTitle("Chaotic-AUR API")
.setDescription("Chaotic-AUR API specification")
.setVersion("1.0")
.addTag("chaotic-aur")
.setContact("Chaotic-AUR developers", "https://aur.chaotic.cx/about", "[email protected]")
.build();
const documentFactory = () => SwaggerModule.createDocument(app, config);
const documentFactory = (): OpenAPIObject => SwaggerModule.createDocument(app, config);
SwaggerModule.setup("api", app, documentFactory);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"@nestjs/jwt": "^10.2.0",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-fastify": "^10.4.6",
"@nestjs/swagger": "^7.4.2",
"@nestjs/swagger": "^8.0.1",
"@nestjs/terminus": "^10.2.3",
"@nestjs/throttler": "^6.2.1",
"@nestjs/typeorm": "^10.0.2",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 444fe49

Please sign in to comment.