Skip to content

Commit

Permalink
fix: fixing semantic errors in the specs (#11)
Browse files Browse the repository at this point in the history
* Modified specs to conform with the OpenAPI 3.0 schema

* Updated verison to current

* Updated sepaaration character
  • Loading branch information
shwetha-manvinkurke authored Dec 4, 2020
1 parent 462b7e1 commit b328c36
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 71 deletions.
8 changes: 4 additions & 4 deletions spec/json/twilio_api_v2010.json
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@
},
"type": "object"
},
"api.v2010.account.call.call_notification|instance": {
"api.v2010.account.call.call_notification-instance": {
"properties": {
"account_sid": {
"maxLength": 34,
Expand Down Expand Up @@ -2982,7 +2982,7 @@
},
"type": "object"
},
"api.v2010.account.notification|instance": {
"api.v2010.account.notification-instance": {
"properties": {
"account_sid": {
"maxLength": 34,
Expand Down Expand Up @@ -11728,7 +11728,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/api.v2010.account.call.call_notification|instance"
"$ref": "#/components/schemas/api.v2010.account.call.call_notification-instance"
}
}
},
Expand Down Expand Up @@ -18128,7 +18128,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/api.v2010.account.notification|instance"
"$ref": "#/components/schemas/api.v2010.account.notification-instance"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions spec/json/twilio_bulkexports_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"type": "object"
},
"bulkexports.v1.export.day|instance": {
"bulkexports.v1.export.day-instance": {
"properties": {
"redirect_to": {
"format": "uri",
Expand Down Expand Up @@ -510,7 +510,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/bulkexports.v1.export.day|instance"
"$ref": "#/components/schemas/bulkexports.v1.export.day-instance"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions spec/json/twilio_monitor_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"type": "object"
},
"monitor.v1.alert|instance": {
"monitor.v1.alert-instance": {
"properties": {
"account_sid": {
"maxLength": 34,
Expand Down Expand Up @@ -398,7 +398,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/monitor.v1.alert|instance"
"$ref": "#/components/schemas/monitor.v1.alert-instance"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions spec/json/twilio_preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"type": "object"
},
"preview.bulk_exports.export.day|instance": {
"preview.bulk_exports.export.day-instance": {
"properties": {
"redirect_to": {
"format": "uri",
Expand Down Expand Up @@ -2827,7 +2827,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/preview.bulk_exports.export.day|instance"
"$ref": "#/components/schemas/preview.bulk_exports.export.day-instance"
}
}
},
Expand Down
12 changes: 6 additions & 6 deletions spec/json/twilio_pricing_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"type": "object"
},
"pricing.v1.messaging.messaging_country|instance": {
"pricing.v1.messaging.messaging_country-instance": {
"properties": {
"country": {
"type": "string"
Expand Down Expand Up @@ -130,7 +130,7 @@
},
"type": "object"
},
"pricing.v1.phone_number.phone_number_country|instance": {
"pricing.v1.phone_number.phone_number_country-instance": {
"properties": {
"country": {
"type": "string"
Expand Down Expand Up @@ -195,7 +195,7 @@
},
"type": "object"
},
"pricing.v1.voice.voice_country|instance": {
"pricing.v1.voice.voice_country-instance": {
"properties": {
"country": {
"type": "string"
Expand Down Expand Up @@ -432,7 +432,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/pricing.v1.messaging.messaging_country|instance"
"$ref": "#/components/schemas/pricing.v1.messaging.messaging_country-instance"
}
}
},
Expand Down Expand Up @@ -567,7 +567,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/pricing.v1.phone_number.phone_number_country|instance"
"$ref": "#/components/schemas/pricing.v1.phone_number.phone_number_country-instance"
}
}
},
Expand Down Expand Up @@ -700,7 +700,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/pricing.v1.voice.voice_country|instance"
"$ref": "#/components/schemas/pricing.v1.voice.voice_country-instance"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions spec/json/twilio_pricing_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"type": "object"
},
"pricing.v2.voice.voice_country|instance": {
"pricing.v2.voice.voice_country-instance": {
"properties": {
"country": {
"type": "string"
Expand Down Expand Up @@ -284,7 +284,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/pricing.v2.voice.voice_country|instance"
"$ref": "#/components/schemas/pricing.v2.voice.voice_country-instance"
}
}
},
Expand Down
42 changes: 21 additions & 21 deletions spec/json/twilio_voice_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,26 +237,7 @@
},
"type": "object"
},
"voice.v1.dialing_permissions.dialing_permissions_country.dialing_permissions_hrs_prefixes": {
"properties": {
"prefix": {
"type": "string"
}
},
"type": "object"
},
"voice.v1.dialing_permissions.dialing_permissions_country_bulk_update": {
"properties": {
"update_count": {
"type": "integer"
},
"update_request": {
"type": "string"
}
},
"type": "object"
},
"voice.v1.dialing_permissions.dialing_permissions_country|instance": {
"voice.v1.dialing_permissions.dialing_permissions_country-instance": {
"properties": {
"continent": {
"type": "string"
Expand Down Expand Up @@ -292,6 +273,25 @@
},
"type": "object"
},
"voice.v1.dialing_permissions.dialing_permissions_country.dialing_permissions_hrs_prefixes": {
"properties": {
"prefix": {
"type": "string"
}
},
"type": "object"
},
"voice.v1.dialing_permissions.dialing_permissions_country_bulk_update": {
"properties": {
"update_count": {
"type": "integer"
},
"update_request": {
"type": "string"
}
},
"type": "object"
},
"voice.v1.dialing_permissions.dialing_permissions_settings": {
"properties": {
"dialing_permissions_inheritance": {
Expand Down Expand Up @@ -1658,7 +1658,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/voice.v1.dialing_permissions.dialing_permissions_country|instance"
"$ref": "#/components/schemas/voice.v1.dialing_permissions.dialing_permissions_country-instance"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions spec/yaml/twilio_api_v2010.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ components:
format: uri
type: string
type: object
api.v2010.account.call.call_notification|instance:
api.v2010.account.call.call_notification-instance:
properties:
account_sid:
maxLength: 34
Expand Down Expand Up @@ -2283,7 +2283,7 @@ components:
format: uri
type: string
type: object
api.v2010.account.notification|instance:
api.v2010.account.notification-instance:
properties:
account_sid:
maxLength: 34
Expand Down Expand Up @@ -9553,7 +9553,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/api.v2010.account.call.call_notification|instance'
$ref: '#/components/schemas/api.v2010.account.call.call_notification-instance'
description: OK
security:
- accountSid_authToken: []
Expand Down Expand Up @@ -14736,7 +14736,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/api.v2010.account.notification|instance'
$ref: '#/components/schemas/api.v2010.account.notification-instance'
description: OK
security:
- accountSid_authToken: []
Expand Down
4 changes: 2 additions & 2 deletions spec/yaml/twilio_bulkexports_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ components:
size:
type: integer
type: object
bulkexports.v1.export.day|instance:
bulkexports.v1.export.day-instance:
properties:
redirect_to:
format: uri
Expand Down Expand Up @@ -337,7 +337,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/bulkexports.v1.export.day|instance'
$ref: '#/components/schemas/bulkexports.v1.export.day-instance'
description: Temporary Redirect
security:
- accountSid_authToken: []
Expand Down
4 changes: 2 additions & 2 deletions spec/yaml/twilio_monitor_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ components:
format: uri
type: string
type: object
monitor.v1.alert|instance:
monitor.v1.alert-instance:
properties:
account_sid:
maxLength: 34
Expand Down Expand Up @@ -296,7 +296,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/monitor.v1.alert|instance'
$ref: '#/components/schemas/monitor.v1.alert-instance'
description: OK
security:
- accountSid_authToken: []
Expand Down
4 changes: 2 additions & 2 deletions spec/yaml/twilio_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ components:
size:
type: integer
type: object
preview.bulk_exports.export.day|instance:
preview.bulk_exports.export.day-instance:
properties:
redirect_to:
format: uri
Expand Down Expand Up @@ -2076,7 +2076,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/preview.bulk_exports.export.day|instance'
$ref: '#/components/schemas/preview.bulk_exports.export.day-instance'
description: Temporary Redirect
security:
- accountSid_authToken: []
Expand Down
12 changes: 6 additions & 6 deletions spec/yaml/twilio_pricing_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ components:
format: uri
type: string
type: object
pricing.v1.messaging.messaging_country|instance:
pricing.v1.messaging.messaging_country-instance:
properties:
country:
type: string
Expand Down Expand Up @@ -85,7 +85,7 @@ components:
format: uri
type: string
type: object
pricing.v1.phone_number.phone_number_country|instance:
pricing.v1.phone_number.phone_number_country-instance:
properties:
country:
type: string
Expand Down Expand Up @@ -128,7 +128,7 @@ components:
format: uri
type: string
type: object
pricing.v1.voice.voice_country|instance:
pricing.v1.voice.voice_country-instance:
properties:
country:
type: string
Expand Down Expand Up @@ -289,7 +289,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/pricing.v1.messaging.messaging_country|instance'
$ref: '#/components/schemas/pricing.v1.messaging.messaging_country-instance'
description: OK
security:
- accountSid_authToken: []
Expand Down Expand Up @@ -372,7 +372,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/pricing.v1.phone_number.phone_number_country|instance'
$ref: '#/components/schemas/pricing.v1.phone_number.phone_number_country-instance'
description: OK
security:
- accountSid_authToken: []
Expand Down Expand Up @@ -455,7 +455,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/pricing.v1.voice.voice_country|instance'
$ref: '#/components/schemas/pricing.v1.voice.voice_country-instance'
description: OK
security:
- accountSid_authToken: []
Expand Down
4 changes: 2 additions & 2 deletions spec/yaml/twilio_pricing_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ components:
format: uri
type: string
type: object
pricing.v2.voice.voice_country|instance:
pricing.v2.voice.voice_country-instance:
properties:
country:
type: string
Expand Down Expand Up @@ -191,7 +191,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/pricing.v2.voice.voice_country|instance'
$ref: '#/components/schemas/pricing.v2.voice.voice_country-instance'
description: OK
security:
- accountSid_authToken: []
Expand Down
Loading

0 comments on commit b328c36

Please sign in to comment.