swagger: fixed invalid specification (#5485)
Currently, the swagger spec doesn't follow the Swagger 2.0 specification. So, I facing 4 errors when trying generate the Golang client for chatwoot. Due to the spec, the binary field should use format: binary beside type: string Signed-off-by: Giau. Tran Minh <hello@giautm.dev> Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
@@ -5688,7 +5688,8 @@
|
||||
"description": "phone number of the contact"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string <binary>",
|
||||
"type": "string",
|
||||
"format": "binary",
|
||||
"description": "Send the form data with the avatar image binary or use the avatar_url"
|
||||
},
|
||||
"avatar_url": {
|
||||
@@ -5721,7 +5722,8 @@
|
||||
"description": "phone number of the contact"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string <binary>",
|
||||
"type": "string",
|
||||
"format": "binary",
|
||||
"description": "Send the form data with the avatar image binary or use the avatar_url"
|
||||
},
|
||||
"avatar_url": {
|
||||
@@ -6157,9 +6159,6 @@
|
||||
"conversation_show": {
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/generic_id"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/conversation"
|
||||
},
|
||||
@@ -6237,27 +6236,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"extended_message": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/generic_id"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/message"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"source_id": {
|
||||
"type": "number"
|
||||
},
|
||||
"sender": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"account_summary": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user