Skip to content

Commit 60da831

Browse files
committed
build: fix ts errors
1 parent 591952e commit 60da831

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

src/modules/artists/controllers/artist.controller.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ export class ArtistController implements Routes {
4545
title: 'Page number',
4646
description: 'page number',
4747
type: 'number',
48-
example: 1
48+
example: '1'
4949
}),
5050
songCount: z.string().pipe(z.coerce.number()).optional().openapi({
5151
title: 'Song count',
5252
description: 'Number of songs to fetch',
5353
type: 'number',
54-
example: 10
54+
example: '10'
5555
}),
5656
albumCount: z.string().pipe(z.coerce.number()).optional().openapi({
5757
title: 'Album count',
5858
description: 'Number of albums to fetch',
5959
type: 'number',
60-
example: 10
60+
example: '10'
6161
}),
6262
sortBy: z.enum(['popularity', 'latest', 'alphabetical']).optional().openapi({
6363
title: 'Sort by',
@@ -135,19 +135,19 @@ export class ArtistController implements Routes {
135135
title: 'Page number',
136136
description: 'The page number of the results to retrieve',
137137
type: 'integer',
138-
example: 0
138+
example: '0'
139139
}),
140140
songCount: z.string().pipe(z.coerce.number()).optional().openapi({
141141
title: 'Song count',
142142
description: 'The number of songs to retrieve for the artist',
143143
type: 'integer',
144-
example: 10
144+
example: '10'
145145
}),
146146
albumCount: z.string().pipe(z.coerce.number()).optional().openapi({
147147
title: 'Album count',
148148
description: 'The number of albums to retrieve for the artist',
149149
type: 'integer',
150-
example: 10
150+
example: '10'
151151
}),
152152
sortBy: z
153153
.enum(['popularity', 'latest', 'alphabetical'])
@@ -230,8 +230,8 @@ export class ArtistController implements Routes {
230230
page: z.string().pipe(z.coerce.number()).optional().openapi({
231231
description: 'The page number of the results to retrieve',
232232
type: 'number',
233-
example: 0,
234-
default: 0
233+
example: '0',
234+
default: '0'
235235
}),
236236
sortBy: z
237237
.enum(['popularity', 'latest', 'alphabetical'])
@@ -314,8 +314,8 @@ export class ArtistController implements Routes {
314314
page: z.string().pipe(z.coerce.number()).optional().openapi({
315315
description: 'The page number of the results to retrieve',
316316
type: 'number',
317-
example: 0,
318-
default: 0
317+
example: '0',
318+
default: '0'
319319
}),
320320
sortBy: z
321321
.enum(['popularity', 'latest', 'alphabetical'])

src/modules/playlists/controllers/playlist.controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ export class PlaylistController implements Routes {
5252
title: 'Page Number',
5353
description: 'The page number of the songs to retrieve from the playlist',
5454
type: 'integer',
55-
example: 0,
56-
default: 0
55+
example: '0',
56+
default: '0'
5757
}),
5858
limit: z.string().pipe(z.coerce.number()).optional().openapi({
5959
title: 'Limit',
6060
description: 'Number of songs to retrieve per page',
6161
type: 'integer',
62-
example: 10,
63-
default: 10
62+
example: '10',
63+
default: '10'
6464
})
6565
})
6666
},

src/modules/search/controllers/search.controller.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ export class SearchController implements Routes {
8686
title: 'Page Number',
8787
description: 'The page number of the search results to retrieve',
8888
type: 'integer',
89-
example: 0,
90-
default: 0
89+
example: '0',
90+
default: '0'
9191
}),
9292
limit: z.string().pipe(z.coerce.number()).optional().openapi({
9393
title: 'Limit',
9494
description: 'Number of search results per page',
9595
type: 'integer',
96-
example: 10,
97-
default: 10
96+
example: '10',
97+
default: '10'
9898
})
9999
})
100100
},
@@ -145,14 +145,14 @@ export class SearchController implements Routes {
145145
page: z.string().pipe(z.coerce.number()).optional().openapi({
146146
description: 'The page number of the search results to retrieve',
147147
type: 'integer',
148-
example: 0,
149-
default: 0
148+
example: '0',
149+
default: '0'
150150
}),
151151
limit: z.string().pipe(z.coerce.number()).optional().openapi({
152152
description: 'The number of search results per page',
153153
type: 'integer',
154-
example: 10,
155-
default: 10
154+
example: '10',
155+
default: '10'
156156
})
157157
})
158158
},
@@ -205,15 +205,15 @@ export class SearchController implements Routes {
205205
title: 'Page Number',
206206
description: 'The page number of the search results to retrieve',
207207
type: 'integer',
208-
example: 0,
209-
default: 0
208+
example: '0',
209+
default: '0'
210210
}),
211211
limit: z.string().pipe(z.coerce.number()).optional().openapi({
212212
title: 'Limit',
213213
description: 'Number of search results per page',
214214
type: 'integer',
215-
example: 10,
216-
default: 10
215+
example: '10',
216+
default: '10'
217217
})
218218
})
219219
},
@@ -266,15 +266,15 @@ export class SearchController implements Routes {
266266
title: 'Page Number',
267267
description: 'The page number of the search results to retrieve',
268268
type: 'integer',
269-
example: 0,
270-
default: 0
269+
example: '0',
270+
default: '0'
271271
}),
272272
limit: z.string().pipe(z.coerce.number()).optional().openapi({
273273
title: 'Limit',
274274
description: 'Number of search results per page',
275275
type: 'integer',
276-
example: 10,
277-
default: 10
276+
example: '10',
277+
default: '10'
278278
})
279279
})
280280
},

src/modules/songs/controllers/song.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ export class SongController implements Routes {
211211
description: 'Limit the number of suggestions to retrieve',
212212
type: 'number',
213213
title: 'Limit',
214-
example: 10,
215-
default: 10
214+
example: '10',
215+
default: '10'
216216
})
217217
})
218218
},

0 commit comments

Comments
 (0)