Skip to content

Commit 3585498

Browse files
Update nullables in spec to be on references, not on schemas (#187)
Co-authored-by: Niels Swimberghe <[email protected]>
1 parent 3695d6c commit 3585498

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

descriptions/2.11/api.intercom.io.yaml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3348,8 +3348,7 @@ paths:
33483348
content:
33493349
application/json:
33503350
schema:
3351-
oneOf:
3352-
- "$ref": "#/components/schemas/update_contact_request"
3351+
"$ref": "#/components/schemas/update_contact_request"
33533352
examples:
33543353
successful:
33553354
summary: successful
@@ -4015,8 +4014,7 @@ paths:
40154014
content:
40164015
application/json:
40174016
schema:
4018-
oneOf:
4019-
- "$ref": "#/components/schemas/create_contact_request"
4017+
"$ref": "#/components/schemas/create_contact_request"
40204018
examples:
40214019
successful:
40224020
summary: successful
@@ -12022,6 +12020,7 @@ components:
1202212020
example: 6329bd9ffe4e2e91dac76188
1202312021
customer:
1202412022
"$ref": "#/components/schemas/customer_request"
12023+
nullable: true
1202512024
required:
1202612025
- intercom_user_id
1202712026
- title: User ID
@@ -12033,6 +12032,7 @@ components:
1203312032
example: 6329bd9ffe4e2e91dac76188
1203412033
customer:
1203512034
"$ref": "#/components/schemas/customer_request"
12035+
nullable: true
1203612036
required:
1203712037
- user_id
1203812038
- title: Email
@@ -12044,6 +12044,7 @@ components:
1204412044
1204512045
customer:
1204612046
"$ref": "#/components/schemas/customer_request"
12047+
nullable: true
1204712048
required:
1204812049
- email
1204912050
close_conversation_request:
@@ -13349,6 +13350,7 @@ components:
1334913350
"$ref": "#/components/schemas/conversation_first_contact_reply"
1335013351
sla_applied:
1335113352
"$ref": "#/components/schemas/sla_applied"
13353+
nullable: true
1335213354
statistics:
1335313355
"$ref": "#/components/schemas/conversation_statistics"
1335413356
conversation_parts:
@@ -14568,6 +14570,7 @@ components:
1456814570
example: 1
1456914571
next:
1457014572
"$ref": "#/components/schemas/starting_after_paging"
14573+
nullable: true
1457114574
per_page:
1457214575
type: integer
1457314576
description: Number of results per page
@@ -14621,7 +14624,6 @@ components:
1462114624
- type
1462214625
customer_request:
1462314626
type: object
14624-
nullable: true
1462514627
oneOf:
1462614628
- title: Intercom User ID
1462714629
properties:
@@ -16089,7 +16091,6 @@ components:
1608916091
title: Phone Switch
1609016092
type: object
1609116093
description: Phone Switch Response
16092-
nullable: true
1609316094
properties:
1609416095
type:
1609516096
type: string
@@ -16185,6 +16186,7 @@ components:
1618516186
title: multiple filter search request
1618616187
pagination:
1618716188
"$ref": "#/components/schemas/starting_after_paging"
16189+
nullable: true
1618816190
required:
1618916191
- query
1619016192
segment:
@@ -16292,7 +16294,6 @@ components:
1629216294
sla_applied:
1629316295
title: Applied SLA
1629416296
type: object
16295-
nullable: true
1629616297
description: |
1629716298
The SLA Applied object contains the details for which SLA has been applied to this conversation.
1629816299
Important: if there are any canceled sla_events for the conversation - meaning an SLA has been manually removed from a conversation, the sla_status will always be returned as null.
@@ -16371,7 +16372,6 @@ components:
1637116372
starting_after_paging:
1637216373
title: 'Pagination: Starting After'
1637316374
type: object
16374-
nullable: true
1637516375
properties:
1637616376
per_page:
1637716377
type: integer
@@ -16661,7 +16661,6 @@ components:
1666116661
x-tags:
1666216662
- Tickets
1666316663
description: Tickets are how you track requests from your users.
16664-
nullable: true
1666516664
properties:
1666616665
type:
1666716666
type: string
@@ -16700,6 +16699,7 @@ components:
1670016699
example: submitted
1670116700
ticket_type:
1670216701
"$ref": "#/components/schemas/ticket_type"
16702+
nullable: true
1670316703
contacts:
1670416704
"$ref": "#/components/schemas/ticket_contacts"
1670516705
admin_assignee_id:
@@ -17047,7 +17047,6 @@ components:
1704717047
- Tickets
1704817048
description: A ticket type, used to define the data fields to be captured in
1704917049
a ticket.
17050-
nullable: true
1705117050
properties:
1705217051
type:
1705317052
type: string
@@ -17114,7 +17113,6 @@ components:
1711417113
type: object
1711517114
description: Ticket type attribute, used to define each data field to be captured
1711617115
in a ticket.
17117-
nullable: true
1711817116
properties:
1711917117
type:
1712017118
type: string
@@ -17311,7 +17309,6 @@ components:
1731117309
description: You can Update an Article
1731217310
type: object
1731317311
title: Update Article Request Payload
17314-
nullable: true
1731517312
properties:
1731617313
title:
1731717314
type: string
@@ -17588,7 +17585,6 @@ components:
1758817585
You can copy the `icon` property for your ticket type from [Twemoji Cheatsheet](https://twemoji-cheatsheet.vercel.app/)
1758917586
type: object
1759017587
title: Update Ticket Type Request Payload
17591-
nullable: true
1759217588
properties:
1759317589
name:
1759417590
type: string
@@ -17660,7 +17656,6 @@ components:
1766017656
not yet been identified. They usually represent website visitors. Visitors
1766117657
are not visible in Intercom platform. The Visitors resource provides methods
1766217658
to fetch, update, convert and delete.
17663-
nullable: true
1766417659
properties:
1766517660
type:
1766617661
type: string

0 commit comments

Comments
 (0)