fix: Remove more "required optionals" from OpenAPI spec (#1522)

Co-authored-by: Hampus <[email protected]>
This commit is contained in:
Gapriel RideandHampus authored and GitHub committed 2026-08-15 13:32:59 +02:00
1 parent d8c5c88c0d
commit b386cd625a
4 files changed
+21 -13

No files matched your search

@@ -101,7 +101,6 @@ 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'),