validate swagger api specification

This commit is contained in:
Tanmay Deep Sharma
2025-05-20 17:00:52 +07:00
parent 22b2280337
commit 78b03a1651
9 changed files with 217 additions and 7 deletions
+4
View File
@@ -20,6 +20,8 @@ automation_rule_item:
$ref: ./resource/automation_rule_item.yml
portal:
$ref: ./resource/portal.yml
portal_single:
$ref: ./resource/portal_single.yml
portal_config:
$ref: ./resource/portal_config.yml
portal_logo:
@@ -44,6 +46,8 @@ agent:
$ref: ./resource/agent.yml
inbox:
$ref: ./resource/inbox.yml
inbox_contact:
$ref: ./resource/inbox_contact.yml
agent_bot:
$ref: ./resource/agent_bot.yml
contact_inboxes:
@@ -4,5 +4,4 @@ properties:
type: string
description: Contact Inbox Source Id
inbox:
type: object
$ref: '#/components/schemas/inbox_contact'
@@ -85,4 +85,7 @@ properties:
description: The applied SLA
sla_events:
type: array
items:
type: object
description: SLA event objects
@@ -1,6 +1,5 @@
type: object
properties:
payload:
type: object
description: A single portal object (for show/update endpoints)
$ref: '#/components/schemas/portal_item'
+42 -1
View File
@@ -7936,6 +7936,14 @@
}
}
},
"portal_single": {
"type": "object",
"properties": {
"payload": {
"$ref": "#/components/schemas/portal_item"
}
}
},
"portal_config": {
"type": "object",
"description": "Configuration settings for the portal",
@@ -8365,7 +8373,11 @@
"description": "The applied SLA"
},
"sla_events": {
"type": "array"
"type": "array",
"items": {
"type": "object",
"description": "SLA event objects"
}
}
}
},
@@ -8831,6 +8843,35 @@
}
}
},
"inbox_contact": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "ID of the inbox"
},
"avatar_url": {
"type": "string",
"description": "The avatar image of the inbox"
},
"channel_id": {
"type": "number",
"description": "The ID of the channel"
},
"name": {
"type": "string",
"description": "The name of the inbox"
},
"channel_type": {
"type": "string",
"description": "The type of the inbox"
},
"provider": {
"type": "string",
"description": "The provider of the inbox"
}
}
},
"agent_bot": {
"type": "object",
"properties": {
+42 -1
View File
@@ -6231,6 +6231,14 @@
}
}
},
"portal_single": {
"type": "object",
"properties": {
"payload": {
"$ref": "#/components/schemas/portal_item"
}
}
},
"portal_config": {
"type": "object",
"description": "Configuration settings for the portal",
@@ -6660,7 +6668,11 @@
"description": "The applied SLA"
},
"sla_events": {
"type": "array"
"type": "array",
"items": {
"type": "object",
"description": "SLA event objects"
}
}
}
},
@@ -7126,6 +7138,35 @@
}
}
},
"inbox_contact": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "ID of the inbox"
},
"avatar_url": {
"type": "string",
"description": "The avatar image of the inbox"
},
"channel_id": {
"type": "number",
"description": "The ID of the channel"
},
"name": {
"type": "string",
"description": "The name of the inbox"
},
"channel_type": {
"type": "string",
"description": "The type of the inbox"
},
"provider": {
"type": "string",
"description": "The provider of the inbox"
}
}
},
"agent_bot": {
"type": "object",
"properties": {
+42 -1
View File
@@ -906,6 +906,14 @@
}
}
},
"portal_single": {
"type": "object",
"properties": {
"payload": {
"$ref": "#/components/schemas/portal_item"
}
}
},
"portal_config": {
"type": "object",
"description": "Configuration settings for the portal",
@@ -1335,7 +1343,11 @@
"description": "The applied SLA"
},
"sla_events": {
"type": "array"
"type": "array",
"items": {
"type": "object",
"description": "SLA event objects"
}
}
}
},
@@ -1801,6 +1813,35 @@
}
}
},
"inbox_contact": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "ID of the inbox"
},
"avatar_url": {
"type": "string",
"description": "The avatar image of the inbox"
},
"channel_id": {
"type": "number",
"description": "The ID of the channel"
},
"name": {
"type": "string",
"description": "The name of the inbox"
},
"channel_type": {
"type": "string",
"description": "The type of the inbox"
},
"provider": {
"type": "string",
"description": "The provider of the inbox"
}
}
},
"agent_bot": {
"type": "object",
"properties": {
+42 -1
View File
@@ -299,6 +299,14 @@
}
}
},
"portal_single": {
"type": "object",
"properties": {
"payload": {
"$ref": "#/components/schemas/portal_item"
}
}
},
"portal_config": {
"type": "object",
"description": "Configuration settings for the portal",
@@ -728,7 +736,11 @@
"description": "The applied SLA"
},
"sla_events": {
"type": "array"
"type": "array",
"items": {
"type": "object",
"description": "SLA event objects"
}
}
}
},
@@ -1194,6 +1206,35 @@
}
}
},
"inbox_contact": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "ID of the inbox"
},
"avatar_url": {
"type": "string",
"description": "The avatar image of the inbox"
},
"channel_id": {
"type": "number",
"description": "The ID of the channel"
},
"name": {
"type": "string",
"description": "The name of the inbox"
},
"channel_type": {
"type": "string",
"description": "The type of the inbox"
},
"provider": {
"type": "string",
"description": "The provider of the inbox"
}
}
},
"agent_bot": {
"type": "object",
"properties": {
+42 -1
View File
@@ -1092,6 +1092,14 @@
}
}
},
"portal_single": {
"type": "object",
"properties": {
"payload": {
"$ref": "#/components/schemas/portal_item"
}
}
},
"portal_config": {
"type": "object",
"description": "Configuration settings for the portal",
@@ -1521,7 +1529,11 @@
"description": "The applied SLA"
},
"sla_events": {
"type": "array"
"type": "array",
"items": {
"type": "object",
"description": "SLA event objects"
}
}
}
},
@@ -1987,6 +1999,35 @@
}
}
},
"inbox_contact": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "ID of the inbox"
},
"avatar_url": {
"type": "string",
"description": "The avatar image of the inbox"
},
"channel_id": {
"type": "number",
"description": "The ID of the channel"
},
"name": {
"type": "string",
"description": "The name of the inbox"
},
"channel_type": {
"type": "string",
"description": "The type of the inbox"
},
"provider": {
"type": "string",
"description": "The provider of the inbox"
}
}
},
"agent_bot": {
"type": "object",
"properties": {