Skip to content

Commit 80d1beb

Browse files
Merge pull request #243 from aqsous/main
refactor: update nestjs to 11
2 parents 00103c4 + 3ccecb6 commit 80d1beb

5 files changed

Lines changed: 4806 additions & 3409 deletions

File tree

apps/example/src/main.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ describe('Cats', () => {
6565
.set('Accept', 'application/json')
6666
.expect(200)
6767
.expect({
68-
// todo: this should report 3.1.0 (or use openapi 3.0.0 supporting zod-openapi)
6968
openapi: '3.0.0',
7069
paths: {
7170
'/': {
7271
get: {
7372
operationId: 'AppController_getData',
7473
parameters: [],
7574
responses: { '200': { description: '' } },
75+
tags: ['App']
7676
},
7777
},
7878
'/cats': {
@@ -89,6 +89,7 @@ describe('Cats', () => {
8989
},
9090
},
9191
},
92+
tags: [`Cats`],
9293
},
9394
post: {
9495
operationId: 'CatsController_create',
@@ -113,6 +114,7 @@ describe('Cats', () => {
113114
},
114115
},
115116
},
117+
tags: ['Cats'],
116118
},
117119
patch: {
118120
operationId: 'CatsController_update',
@@ -126,6 +128,7 @@ describe('Cats', () => {
126128
},
127129
},
128130
responses: { '200': { description: '' } },
131+
tags: ['Cats'],
129132
},
130133
},
131134
'/cats/{id}': {
@@ -149,6 +152,7 @@ describe('Cats', () => {
149152
},
150153
},
151154
},
155+
tags: ['Cats'],
152156
},
153157
},
154158
},

apps/example/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ async function bootstrap() {
1818
.setTitle('Cats example')
1919
.setDescription('The cats API description')
2020
.setVersion('1.0')
21+
.setOpenAPIVersion('3.0.0')
2122
.addTag('cats')
2223
.build();
2324

0 commit comments

Comments
 (0)