Skip to content

Commit

Permalink
build: fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitkolhe committed Aug 4, 2024
1 parent 591952e commit 60da831
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
20 changes: 10 additions & 10 deletions src/modules/artists/controllers/artist.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ export class ArtistController implements Routes {
title: 'Page number',
description: 'page number',
type: 'number',
example: 1
example: '1'
}),
songCount: z.string().pipe(z.coerce.number()).optional().openapi({
title: 'Song count',
description: 'Number of songs to fetch',
type: 'number',
example: 10
example: '10'
}),
albumCount: z.string().pipe(z.coerce.number()).optional().openapi({
title: 'Album count',
description: 'Number of albums to fetch',
type: 'number',
example: 10
example: '10'
}),
sortBy: z.enum(['popularity', 'latest', 'alphabetical']).optional().openapi({
title: 'Sort by',
Expand Down Expand Up @@ -135,19 +135,19 @@ export class ArtistController implements Routes {
title: 'Page number',
description: 'The page number of the results to retrieve',
type: 'integer',
example: 0
example: '0'
}),
songCount: z.string().pipe(z.coerce.number()).optional().openapi({
title: 'Song count',
description: 'The number of songs to retrieve for the artist',
type: 'integer',
example: 10
example: '10'
}),
albumCount: z.string().pipe(z.coerce.number()).optional().openapi({
title: 'Album count',
description: 'The number of albums to retrieve for the artist',
type: 'integer',
example: 10
example: '10'
}),
sortBy: z
.enum(['popularity', 'latest', 'alphabetical'])
Expand Down Expand Up @@ -230,8 +230,8 @@ export class ArtistController implements Routes {
page: z.string().pipe(z.coerce.number()).optional().openapi({
description: 'The page number of the results to retrieve',
type: 'number',
example: 0,
default: 0
example: '0',
default: '0'
}),
sortBy: z
.enum(['popularity', 'latest', 'alphabetical'])
Expand Down Expand Up @@ -314,8 +314,8 @@ export class ArtistController implements Routes {
page: z.string().pipe(z.coerce.number()).optional().openapi({
description: 'The page number of the results to retrieve',
type: 'number',
example: 0,
default: 0
example: '0',
default: '0'
}),
sortBy: z
.enum(['popularity', 'latest', 'alphabetical'])
Expand Down
8 changes: 4 additions & 4 deletions src/modules/playlists/controllers/playlist.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ export class PlaylistController implements Routes {
title: 'Page Number',
description: 'The page number of the songs to retrieve from the playlist',
type: 'integer',
example: 0,
default: 0
example: '0',
default: '0'
}),
limit: z.string().pipe(z.coerce.number()).optional().openapi({
title: 'Limit',
description: 'Number of songs to retrieve per page',
type: 'integer',
example: 10,
default: 10
example: '10',
default: '10'
})
})
},
Expand Down
32 changes: 16 additions & 16 deletions src/modules/search/controllers/search.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ export class SearchController implements Routes {
title: 'Page Number',
description: 'The page number of the search results to retrieve',
type: 'integer',
example: 0,
default: 0
example: '0',
default: '0'
}),
limit: z.string().pipe(z.coerce.number()).optional().openapi({
title: 'Limit',
description: 'Number of search results per page',
type: 'integer',
example: 10,
default: 10
example: '10',
default: '10'
})
})
},
Expand Down Expand Up @@ -145,14 +145,14 @@ export class SearchController implements Routes {
page: z.string().pipe(z.coerce.number()).optional().openapi({
description: 'The page number of the search results to retrieve',
type: 'integer',
example: 0,
default: 0
example: '0',
default: '0'
}),
limit: z.string().pipe(z.coerce.number()).optional().openapi({
description: 'The number of search results per page',
type: 'integer',
example: 10,
default: 10
example: '10',
default: '10'
})
})
},
Expand Down Expand Up @@ -205,15 +205,15 @@ export class SearchController implements Routes {
title: 'Page Number',
description: 'The page number of the search results to retrieve',
type: 'integer',
example: 0,
default: 0
example: '0',
default: '0'
}),
limit: z.string().pipe(z.coerce.number()).optional().openapi({
title: 'Limit',
description: 'Number of search results per page',
type: 'integer',
example: 10,
default: 10
example: '10',
default: '10'
})
})
},
Expand Down Expand Up @@ -266,15 +266,15 @@ export class SearchController implements Routes {
title: 'Page Number',
description: 'The page number of the search results to retrieve',
type: 'integer',
example: 0,
default: 0
example: '0',
default: '0'
}),
limit: z.string().pipe(z.coerce.number()).optional().openapi({
title: 'Limit',
description: 'Number of search results per page',
type: 'integer',
example: 10,
default: 10
example: '10',
default: '10'
})
})
},
Expand Down
4 changes: 2 additions & 2 deletions src/modules/songs/controllers/song.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export class SongController implements Routes {
description: 'Limit the number of suggestions to retrieve',
type: 'number',
title: 'Limit',
example: 10,
default: 10
example: '10',
default: '10'
})
})
},
Expand Down

0 comments on commit 60da831

Please sign in to comment.