From c30344da5d1e19f7ab4bd83bfaa0965b403a1753 Mon Sep 17 00:00:00 2001 From: Gapriel Ride <123248449+notgapriel@users.noreply.github.com> Date: Sun, 2 Aug 2026 19:43:26 +1000 Subject: [PATCH] fix: OpenAPI spec does not require nullable description in rich embeds (#1519) --- fluxer_api/src/api/openapi/openapi.json | 3 +-- packages/schema/src/domains/message/MessageRequestSchemas.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fluxer_api/src/api/openapi/openapi.json b/fluxer_api/src/api/openapi/openapi.json index 712abfee4..7728f31eb 100644 --- a/fluxer_api/src/api/openapi/openapi.json +++ b/fluxer_api/src/api/openapi/openapi.json @@ -28596,8 +28596,7 @@ ], "description": "Array of field objects (max 25)" } - }, - "required": ["description"] + } }, "RichEmbedAuthorRequest": { "anyOf": [ diff --git a/packages/schema/src/domains/message/MessageRequestSchemas.ts b/packages/schema/src/domains/message/MessageRequestSchemas.ts index 05f2a4bfc..e4e6bbadd 100644 --- a/packages/schema/src/domains/message/MessageRequestSchemas.ts +++ b/packages/schema/src/domains/message/MessageRequestSchemas.ts @@ -101,6 +101,7 @@ export const RichEmbedRequest = z.object({ timestamp: DateTimeType.nullish().describe('ISO8601 timestamp for the embed'), description: z .preprocess(omitEmptyString, createStringType(1, RICH_EMBED_DESCRIPTION_MAX_LENGTH).nullish()) + .optional() .describe(`Description of the embed (1-${RICH_EMBED_DESCRIPTION_MAX_LENGTH} characters)`), author: RichEmbedAuthorRequest.nullish().describe('Author information'), image: RichEmbedMediaRequest.nullish().describe('Image to display in the embed'),