Skip to content

Commit 1737cd7

Browse files
committed
Merge branch 'next' into topics-page
2 parents 54b8c9c + 6e9236d commit 1737cd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/api/src/app/shared/framework/swagger/swagger.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable max-len */
22
import { DocumentBuilder, OpenAPIObject, SwaggerModule } from '@nestjs/swagger';
3+
import packageJson from '../../../../../package.json';
34
import { INestApplication } from '@nestjs/common';
45
import { SecuritySchemeObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
56
import { injectDocumentComponents } from './injection';
@@ -28,7 +29,7 @@ function buildBaseOptions() {
2829
const options = new DocumentBuilder()
2930
.setTitle('Novu API')
3031
.setDescription('Novu REST API. Please see https://docs.novu.co/api-reference for more details.')
31-
.setVersion('1.0')
32+
.setVersion(packageJson.version)
3233
.setContact('Novu Support', 'https://discord.gg/novu', '[email protected]')
3334
.setExternalDoc('Novu Documentation', 'https://docs.novu.co')
3435
.setTermsOfService('https://novu.co/terms')

0 commit comments

Comments
 (0)