From a6ea282f1d259275ca33c314c1c38e668c36584c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Wed, 4 Sep 2024 17:01:38 +0100 Subject: [PATCH] fix: add request body schema in update segment endpoint --- src/lib/features/segment/segment-controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/features/segment/segment-controller.ts b/src/lib/features/segment/segment-controller.ts index e5c1b9573519..1c05e0e0c286 100644 --- a/src/lib/features/segment/segment-controller.ts +++ b/src/lib/features/segment/segment-controller.ts @@ -198,6 +198,7 @@ export class SegmentsController extends Controller { 'Updates the content of the segment with the provided payload. Any fields not specified will be left untouched.', tags: ['Segments'], operationId: 'updateSegment', + requestBody: createRequestSchema('upsertSegmentSchema'), responses: { 204: emptyResponse, ...getStandardResponses(400, 401, 403, 409, 415),