Skip to content

Commit f6ccc86

Browse files
author
childish-sambino
authored
Drop unsupported null-type object, patternProperties, and add RFC 2822 date time format (#21)
* Drop unsupported null-type object, patternProperties, and add RFC 2822 date time format * Add friendly name to outbound prefix price shemas * Fix the pricing array type schemas
1 parent 04e8350 commit f6ccc86

23 files changed

+216
-1005
lines changed

src/services/twilio-api/twilio_api.json

Lines changed: 122 additions & 170 deletions
Large diffs are not rendered by default.

src/services/twilio-api/twilio_authy.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@
4444
"type": "string"
4545
},
4646
"links": {
47-
"patternProperties": {
48-
"^.+$": {
49-
"format": "uri",
50-
"type": "string"
51-
}
52-
},
5347
"type": "object"
5448
},
5549
"sid": {
@@ -85,12 +79,6 @@
8579
"type": "string"
8680
},
8781
"links": {
88-
"patternProperties": {
89-
"^.+$": {
90-
"format": "uri",
91-
"type": "string"
92-
}
93-
},
9482
"type": "object"
9583
},
9684
"service_sid": {
@@ -160,12 +148,6 @@
160148
"type": "string"
161149
},
162150
"links": {
163-
"patternProperties": {
164-
"^.+$": {
165-
"format": "uri",
166-
"type": "string"
167-
}
168-
},
169151
"type": "object"
170152
},
171153
"service_sid": {

src/services/twilio-api/twilio_autopilot.json

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@
3737
"type": "string"
3838
},
3939
"links": {
40-
"patternProperties": {
41-
"^.+$": {
42-
"format": "uri",
43-
"type": "string"
44-
}
45-
},
4640
"type": "object"
4741
},
4842
"log_queries": {
@@ -147,12 +141,6 @@
147141
"type": "string"
148142
},
149143
"links": {
150-
"patternProperties": {
151-
"^.+$": {
152-
"format": "uri",
153-
"type": "string"
154-
}
155-
},
156144
"type": "object"
157145
},
158146
"sid": {
@@ -239,14 +227,8 @@
239227
"type": "string"
240228
},
241229
"build_duration": {
242-
"anyOf": [
243-
{
244-
"type": "null"
245-
},
246-
{
247-
"type": "integer"
248-
}
249-
]
230+
"nullable": true,
231+
"type": "integer"
250232
},
251233
"date_created": {
252234
"format": "date-time",
@@ -257,14 +239,8 @@
257239
"type": "string"
258240
},
259241
"error_code": {
260-
"anyOf": [
261-
{
262-
"type": "null"
263-
},
264-
{
265-
"type": "integer"
266-
}
267-
]
242+
"nullable": true,
243+
"type": "integer"
268244
},
269245
"sid": {
270246
"maxLength": 34,
@@ -408,12 +384,6 @@
408384
"type": "string"
409385
},
410386
"links": {
411-
"patternProperties": {
412-
"^.+$": {
413-
"format": "uri",
414-
"type": "string"
415-
}
416-
},
417387
"type": "object"
418388
},
419389
"sid": {

src/services/twilio-api/twilio_chat.json

Lines changed: 18 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@
8888
"type": "object"
8989
},
9090
"links": {
91-
"patternProperties": {
92-
"^.+$": {
93-
"format": "uri",
94-
"type": "string"
95-
}
96-
},
9791
"type": "object"
9892
},
9993
"notifications": {
@@ -165,12 +159,6 @@
165159
"type": "string"
166160
},
167161
"links": {
168-
"patternProperties": {
169-
"^.+$": {
170-
"format": "uri",
171-
"type": "string"
172-
}
173-
},
174162
"type": "object"
175163
},
176164
"members_count": {
@@ -287,14 +275,8 @@
287275
"type": "string"
288276
},
289277
"last_consumed_message_index": {
290-
"anyOf": [
291-
{
292-
"type": "null"
293-
},
294-
{
295-
"type": "integer"
296-
}
297-
]
278+
"nullable": true,
279+
"type": "integer"
298280
},
299281
"last_consumption_timestamp": {
300282
"format": "date-time",
@@ -473,12 +455,6 @@
473455
"type": "integer"
474456
},
475457
"links": {
476-
"patternProperties": {
477-
"^.+$": {
478-
"format": "uri",
479-
"type": "string"
480-
}
481-
},
482458
"type": "object"
483459
},
484460
"role_sid": {
@@ -521,22 +497,10 @@
521497
"type": "string"
522498
},
523499
"last_consumed_message_index": {
524-
"anyOf": [
525-
{
526-
"type": "null"
527-
},
528-
{
529-
"type": "integer"
530-
}
531-
]
500+
"nullable": true,
501+
"type": "integer"
532502
},
533503
"links": {
534-
"patternProperties": {
535-
"^.+$": {
536-
"format": "uri",
537-
"type": "string"
538-
}
539-
},
540504
"type": "object"
541505
},
542506
"member_sid": {
@@ -560,14 +524,8 @@
560524
"type": "string"
561525
},
562526
"unread_messages_count": {
563-
"anyOf": [
564-
{
565-
"type": "null"
566-
},
567-
{
568-
"type": "integer"
569-
}
570-
]
527+
"nullable": true,
528+
"type": "integer"
571529
}
572530
},
573531
"type": "object"
@@ -659,12 +617,6 @@
659617
"type": "object"
660618
},
661619
"links": {
662-
"patternProperties": {
663-
"^.+$": {
664-
"format": "uri",
665-
"type": "string"
666-
}
667-
},
668620
"type": "object"
669621
},
670622
"media": {
@@ -753,12 +705,6 @@
753705
"type": "string"
754706
},
755707
"links": {
756-
"patternProperties": {
757-
"^.+$": {
758-
"format": "uri",
759-
"type": "string"
760-
}
761-
},
762708
"type": "object"
763709
},
764710
"message_types": {
@@ -812,12 +758,6 @@
812758
"type": "string"
813759
},
814760
"links": {
815-
"patternProperties": {
816-
"^.+$": {
817-
"format": "uri",
818-
"type": "string"
819-
}
820-
},
821761
"type": "object"
822762
},
823763
"members_count": {
@@ -984,14 +924,8 @@
984924
"type": "string"
985925
},
986926
"last_consumed_message_index": {
987-
"anyOf": [
988-
{
989-
"type": "null"
990-
},
991-
{
992-
"type": "integer"
993-
}
994-
]
927+
"nullable": true,
928+
"type": "integer"
995929
},
996930
"last_consumption_timestamp": {
997931
"format": "date-time",
@@ -1179,12 +1113,6 @@
11791113
"type": "integer"
11801114
},
11811115
"links": {
1182-
"patternProperties": {
1183-
"^.+$": {
1184-
"format": "uri",
1185-
"type": "string"
1186-
}
1187-
},
11881116
"type": "object"
11891117
},
11901118
"role_sid": {
@@ -1294,22 +1222,10 @@
12941222
"type": "string"
12951223
},
12961224
"last_consumed_message_index": {
1297-
"anyOf": [
1298-
{
1299-
"type": "null"
1300-
},
1301-
{
1302-
"type": "integer"
1303-
}
1304-
]
1225+
"nullable": true,
1226+
"type": "integer"
13051227
},
13061228
"links": {
1307-
"patternProperties": {
1308-
"^.+$": {
1309-
"format": "uri",
1310-
"type": "string"
1311-
}
1312-
},
13131229
"type": "object"
13141230
},
13151231
"member_sid": {
@@ -1340,14 +1256,8 @@
13401256
"type": "string"
13411257
},
13421258
"unread_messages_count": {
1343-
"anyOf": [
1344-
{
1345-
"type": "null"
1346-
},
1347-
{
1348-
"type": "integer"
1349-
}
1350-
]
1259+
"nullable": true,
1260+
"type": "integer"
13511261
},
13521262
"url": {
13531263
"format": "uri",
@@ -2668,14 +2578,8 @@
26682578
"name": "LastConsumedMessageIndex",
26692579
"required": false,
26702580
"schema": {
2671-
"anyOf": [
2672-
{
2673-
"type": "null"
2674-
},
2675-
{
2676-
"type": "integer"
2677-
}
2678-
]
2581+
"nullable": true,
2582+
"type": "integer"
26792583
}
26802584
}
26812585
],
@@ -6242,14 +6146,8 @@
62426146
"name": "LastConsumedMessageIndex",
62436147
"required": false,
62446148
"schema": {
6245-
"anyOf": [
6246-
{
6247-
"type": "null"
6248-
},
6249-
{
6250-
"type": "integer"
6251-
}
6252-
]
6149+
"nullable": true,
6150+
"type": "integer"
62536151
}
62546152
},
62556153
{
@@ -6496,14 +6394,8 @@
64966394
"name": "LastConsumedMessageIndex",
64976395
"required": false,
64986396
"schema": {
6499-
"anyOf": [
6500-
{
6501-
"type": "null"
6502-
},
6503-
{
6504-
"type": "integer"
6505-
}
6506-
]
6397+
"nullable": true,
6398+
"type": "integer"
65076399
}
65086400
},
65096401
{

0 commit comments

Comments
 (0)