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'),