mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix: OpenAPI spec does not require nullable description in rich embeds (#1519)
This commit is contained in:
1 parent
fe3f1b25b6
commit
c30344da5d
2 files changed
+2
-2
No files matched your search
@@ -28596,8 +28596,7 @@
|
|||||||
],
|
],
|
||||||
"description": "Array of field objects (max 25)"
|
"description": "Array of field objects (max 25)"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["description"]
|
|
||||||
},
|
},
|
||||||
"RichEmbedAuthorRequest": {
|
"RichEmbedAuthorRequest": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ export const RichEmbedRequest = z.object({
|
|||||||
timestamp: DateTimeType.nullish().describe('ISO8601 timestamp for the embed'),
|
timestamp: DateTimeType.nullish().describe('ISO8601 timestamp for the embed'),
|
||||||
description: z
|
description: z
|
||||||
.preprocess(omitEmptyString, createStringType(1, RICH_EMBED_DESCRIPTION_MAX_LENGTH).nullish())
|
.preprocess(omitEmptyString, createStringType(1, RICH_EMBED_DESCRIPTION_MAX_LENGTH).nullish())
|
||||||
|
.optional()
|
||||||
.describe(`Description of the embed (1-${RICH_EMBED_DESCRIPTION_MAX_LENGTH} characters)`),
|
.describe(`Description of the embed (1-${RICH_EMBED_DESCRIPTION_MAX_LENGTH} characters)`),
|
||||||
author: RichEmbedAuthorRequest.nullish().describe('Author information'),
|
author: RichEmbedAuthorRequest.nullish().describe('Author information'),
|
||||||
image: RichEmbedMediaRequest.nullish().describe('Image to display in the embed'),
|
image: RichEmbedMediaRequest.nullish().describe('Image to display in the embed'),
|
||||||
|
|||||||
Reference in new issue
Block a user