Support attachment base64 and custom filename.

This commit is contained in:
zeetabit
2022-07-28 00:02:37 +02:00
parent 352e068e5b
commit 14fd65c1e7
4 changed files with 44 additions and 21 deletions

View File

@@ -1686,7 +1686,8 @@ var doc = `{
"type": "object",
"properties": {
"base64_attachment": {
"type": "string"
"type": "string",
"example": "<BASE64 ENCODED DATA> or 'data:<MIME-TYPE>;base64,<BASE64 ENCODED DATA>' or 'data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED DATA>'"
},
"is_group": {
"type": "boolean"
@@ -1711,7 +1712,8 @@ var doc = `{
"base64_attachments": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"example": "<BASE64 ENCODED DATA> or 'data:<MIME-TYPE>;base64,<BASE64 ENCODED DATA>' or 'data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED DATA>'"
}
},
"message": {

View File

@@ -1670,7 +1670,8 @@
"type": "object",
"properties": {
"base64_attachment": {
"type": "string"
"type": "string",
"example": "<BASE64 ENCODED DATA> or 'data:<MIME-TYPE>;base64,<BASE64 ENCODED DATA>' or 'data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED DATA>'"
},
"is_group": {
"type": "boolean"
@@ -1695,7 +1696,8 @@
"base64_attachments": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"example": "<BASE64 ENCODED DATA> or 'data:<MIME-TYPE>;base64,<BASE64 ENCODED DATA>' or 'data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED DATA>'"
}
},
"message": {

View File

@@ -107,6 +107,7 @@ definitions:
properties:
base64_attachment:
type: string
example: "<BASE64 ENCODED DATA> or 'data:<MIME-TYPE>;base64,<BASE64 ENCODED DATA>' or 'data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED DATA>'"
is_group:
type: boolean
message:
@@ -123,6 +124,7 @@ definitions:
base64_attachments:
items:
type: string
example: "<BASE64 ENCODED DATA> or 'data:<MIME-TYPE>;base64,<BASE64 ENCODED DATA>' or 'data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED DATA>'"
type: array
message:
type: string