Skip to content

Commit

Permalink
Drop unsupported null-type object, patternProperties, and add RFC 282…
Browse files Browse the repository at this point in the history
…2 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
  • Loading branch information
childish-sambino authored Jul 2, 2019
1 parent 04e8350 commit f6ccc86
Show file tree
Hide file tree
Showing 23 changed files with 216 additions and 1,005 deletions.
292 changes: 122 additions & 170 deletions src/services/twilio-api/twilio_api.json

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions src/services/twilio-api/twilio_authy.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"sid": {
Expand Down Expand Up @@ -85,12 +79,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"service_sid": {
Expand Down Expand Up @@ -160,12 +148,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"service_sid": {
Expand Down
38 changes: 4 additions & 34 deletions src/services/twilio-api/twilio_autopilot.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"log_queries": {
Expand Down Expand Up @@ -147,12 +141,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"sid": {
Expand Down Expand Up @@ -239,14 +227,8 @@
"type": "string"
},
"build_duration": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
},
"date_created": {
"format": "date-time",
Expand All @@ -257,14 +239,8 @@
"type": "string"
},
"error_code": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
},
"sid": {
"maxLength": 34,
Expand Down Expand Up @@ -408,12 +384,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"sid": {
Expand Down
144 changes: 18 additions & 126 deletions src/services/twilio-api/twilio_chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@
"type": "object"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"notifications": {
Expand Down Expand Up @@ -165,12 +159,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"members_count": {
Expand Down Expand Up @@ -287,14 +275,8 @@
"type": "string"
},
"last_consumed_message_index": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
},
"last_consumption_timestamp": {
"format": "date-time",
Expand Down Expand Up @@ -473,12 +455,6 @@
"type": "integer"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"role_sid": {
Expand Down Expand Up @@ -521,22 +497,10 @@
"type": "string"
},
"last_consumed_message_index": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"member_sid": {
Expand All @@ -560,14 +524,8 @@
"type": "string"
},
"unread_messages_count": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
}
},
"type": "object"
Expand Down Expand Up @@ -659,12 +617,6 @@
"type": "object"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"media": {
Expand Down Expand Up @@ -753,12 +705,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"message_types": {
Expand Down Expand Up @@ -812,12 +758,6 @@
"type": "string"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"members_count": {
Expand Down Expand Up @@ -984,14 +924,8 @@
"type": "string"
},
"last_consumed_message_index": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
},
"last_consumption_timestamp": {
"format": "date-time",
Expand Down Expand Up @@ -1179,12 +1113,6 @@
"type": "integer"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"role_sid": {
Expand Down Expand Up @@ -1294,22 +1222,10 @@
"type": "string"
},
"last_consumed_message_index": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
},
"links": {
"patternProperties": {
"^.+$": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"member_sid": {
Expand Down Expand Up @@ -1340,14 +1256,8 @@
"type": "string"
},
"unread_messages_count": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
},
"url": {
"format": "uri",
Expand Down Expand Up @@ -2668,14 +2578,8 @@
"name": "LastConsumedMessageIndex",
"required": false,
"schema": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
}
}
],
Expand Down Expand Up @@ -6242,14 +6146,8 @@
"name": "LastConsumedMessageIndex",
"required": false,
"schema": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
}
},
{
Expand Down Expand Up @@ -6496,14 +6394,8 @@
"name": "LastConsumedMessageIndex",
"required": false,
"schema": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"nullable": true,
"type": "integer"
}
},
{
Expand Down
Loading

0 comments on commit f6ccc86

Please sign in to comment.