mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-30 10:42:38 +00:00
fix: Avoid oneOf usage in Open API 2.0 spec (#8819)
Small fixes to make spec adhere to swagger 2.0
This commit is contained in:
@@ -2,19 +2,5 @@
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
submitted_values:
|
submitted_values:
|
||||||
oneOf:
|
type: object
|
||||||
- type: object
|
description: Replies to the Bot Message Types
|
||||||
description: Replies to the Bot Message Types
|
|
||||||
properties:
|
|
||||||
csat_survey_response:
|
|
||||||
type: object
|
|
||||||
description: CSAT Survey Response if original message is CSAT Survey
|
|
||||||
properties:
|
|
||||||
rating:
|
|
||||||
type: integer
|
|
||||||
description: CSAT Rating
|
|
||||||
example: 5
|
|
||||||
feedback_message:
|
|
||||||
type: string
|
|
||||||
description: CSAT Comment
|
|
||||||
example: 'Great'
|
|
||||||
@@ -51,3 +51,6 @@ public_inbox_identifier:
|
|||||||
|
|
||||||
public_contact_identifier:
|
public_contact_identifier:
|
||||||
$ref: ./public/contact_identifier.yml
|
$ref: ./public/contact_identifier.yml
|
||||||
|
|
||||||
|
portal_id:
|
||||||
|
$ref: ./portal_id.yml
|
||||||
@@ -36,7 +36,7 @@ parameters:
|
|||||||
query_operator:
|
query_operator:
|
||||||
type: string
|
type: string
|
||||||
description: query operator name
|
description: query operator name
|
||||||
enum: [ AND, OR ]
|
enum: [ AND, OR ]
|
||||||
example:
|
example:
|
||||||
- attribute_key: 'name'
|
- attribute_key: 'name'
|
||||||
filter_operator: 'equal_to'
|
filter_operator: 'equal_to'
|
||||||
|
|||||||
@@ -2154,12 +2154,12 @@
|
|||||||
},
|
},
|
||||||
"query_operator": {
|
"query_operator": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "query operator name"
|
"description": "query operator name",
|
||||||
},
|
"enum": [
|
||||||
"enum": [
|
"AND",
|
||||||
"AND",
|
"OR"
|
||||||
"OR"
|
]
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"example": [
|
"example": [
|
||||||
@@ -6746,30 +6746,8 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"submitted_values": {
|
"submitted_values": {
|
||||||
"oneOf": [
|
"type": "object",
|
||||||
{
|
"description": "Replies to the Bot Message Types"
|
||||||
"type": "object",
|
|
||||||
"description": "Replies to the Bot Message Types",
|
|
||||||
"properties": {
|
|
||||||
"csat_survey_response": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "CSAT Survey Response if original message is CSAT Survey",
|
|
||||||
"properties": {
|
|
||||||
"rating": {
|
|
||||||
"type": "integer",
|
|
||||||
"description": "CSAT Rating",
|
|
||||||
"example": 5
|
|
||||||
},
|
|
||||||
"feedback_message": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "CSAT Comment",
|
|
||||||
"example": "Great"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -7280,6 +7258,13 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"required": true,
|
"required": true,
|
||||||
"description": "The source id of contact obtained on contact create"
|
"description": "The source id of contact obtained on contact create"
|
||||||
|
},
|
||||||
|
"portal_id": {
|
||||||
|
"in": "path",
|
||||||
|
"name": "portal_id",
|
||||||
|
"type": "integer",
|
||||||
|
"required": true,
|
||||||
|
"description": "The numeric ID of the portal"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"x-tagGroups": [
|
"x-tagGroups": [
|
||||||
|
|||||||
Reference in New Issue
Block a user