From adbf04e22ae283c7d408a7ae12711d5e7195a51b Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Mon, 22 Jul 2024 05:06:40 +0200 Subject: [PATCH] feat: add content schema to HTTP 201 CREATED messages (#6244) feat: add content schema to 201 messages --- packages/core/src/routes/swagger/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/routes/swagger/index.ts b/packages/core/src/routes/swagger/index.ts index b845ed0d7..cfaf39a9e 100644 --- a/packages/core/src/routes/swagger/index.ts +++ b/packages/core/src/routes/swagger/index.ts @@ -93,7 +93,7 @@ const buildOperation = ( throw new Error(`Invalid status code ${status}.`); } - if (status === 200) { + if (status === 200 || status === 201) { return [ status, {