TODO : Kiota 버그 탐구

This commit is contained in:
dahyeon committed 2025-11-10 17:22:18 +00:00
1 parent 4ec9bf1acf
commit de24f0dd3f
2 files changed
+10 -3

No files matched your search

+9 -2
View File
@@ -127,8 +127,15 @@ export class PageController {
@ApiResponse({
status: 200,
description: '페이지 조회 성공',
type: PageResponseDto,
isArray: true
schema: {
oneOf: [
{ $ref: '#/components/schemas/PageResponseDto' },
{
type: 'array',
items: { $ref: '#/components/schemas/PageResponseDto' }
}
]
}
})
@ApiBadRequestResponse({ description: 'pageId 또는 spaceId 중 하나는 필수' })
@ApiNotFoundResponse({ description: '페이지 또는 스페이스를 찾을 수 없음' })
+1 -1
View File
@@ -293,7 +293,7 @@ export class PageService {
if (!page) {
throw new NotFoundException(`Page with id '${query.pageId}' not found`);
}
return page;
return [page];
} else if (query.spaceId) {
// 스페이스의 모든 페이지 조회
const space = await this.spaceRepository.findById(query.spaceId);