Skip to content

Commit

Permalink
feat: add custom types to global schema
Browse files Browse the repository at this point in the history
  • Loading branch information
eshanholtz committed Jan 25, 2021
1 parent 4fe735f commit 61c17b1
Show file tree
Hide file tree
Showing 66 changed files with 15,957 additions and 26,042 deletions.
97 changes: 45 additions & 52 deletions spec/json/twilio_accounts_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,19 @@
"accounts.v1.auth_token_promotion": {
"properties": {
"account_sid": {
"maxLength": 34,
"minLength": 34,
"pattern": "^AC[0-9a-fA-F]{32}$",
"type": "string"
"$ref": "#/components/schemas/sid_AC"
},
"auth_token": {
"type": "string"
"$ref": "#/components/schemas/string"
},
"date_created": {
"format": "date-time",
"type": "string"
"$ref": "#/components/schemas/date_time_iso8601"
},
"date_updated": {
"format": "date-time",
"type": "string"
"$ref": "#/components/schemas/date_time_iso8601"
},
"url": {
"format": "uri",
"type": "string"
"$ref": "#/components/schemas/url"
}
},
"type": "object"
Expand All @@ -34,92 +28,91 @@
"accounts.v1.credential.credential_aws": {
"properties": {
"account_sid": {
"maxLength": 34,
"minLength": 34,
"pattern": "^AC[0-9a-fA-F]{32}$",
"type": "string"
"$ref": "#/components/schemas/sid_AC"
},
"date_created": {
"format": "date-time",
"type": "string"
"$ref": "#/components/schemas/date_time_iso8601"
},
"date_updated": {
"format": "date-time",
"type": "string"
"$ref": "#/components/schemas/date_time_iso8601"
},
"friendly_name": {
"type": "string"
"$ref": "#/components/schemas/string"
},
"sid": {
"maxLength": 34,
"minLength": 34,
"pattern": "^CR[0-9a-fA-F]{32}$",
"type": "string"
"$ref": "#/components/schemas/sid_CR"
},
"url": {
"format": "uri",
"type": "string"
"$ref": "#/components/schemas/url"
}
},
"type": "object"
},
"accounts.v1.credential.credential_public_key": {
"properties": {
"account_sid": {
"maxLength": 34,
"minLength": 34,
"pattern": "^AC[0-9a-fA-F]{32}$",
"type": "string"
"$ref": "#/components/schemas/sid_AC"
},
"date_created": {
"format": "date-time",
"type": "string"
"$ref": "#/components/schemas/date_time_iso8601"
},
"date_updated": {
"format": "date-time",
"type": "string"
"$ref": "#/components/schemas/date_time_iso8601"
},
"friendly_name": {
"type": "string"
"$ref": "#/components/schemas/string"
},
"sid": {
"maxLength": 34,
"minLength": 34,
"pattern": "^CR[0-9a-fA-F]{32}$",
"type": "string"
"$ref": "#/components/schemas/sid_CR"
},
"url": {
"format": "uri",
"type": "string"
"$ref": "#/components/schemas/url"
}
},
"type": "object"
},
"accounts.v1.secondary_auth_token": {
"properties": {
"account_sid": {
"maxLength": 34,
"minLength": 34,
"pattern": "^AC[0-9a-fA-F]{32}$",
"type": "string"
"$ref": "#/components/schemas/sid_AC"
},
"date_created": {
"format": "date-time",
"type": "string"
"$ref": "#/components/schemas/date_time_iso8601"
},
"date_updated": {
"format": "date-time",
"type": "string"
"$ref": "#/components/schemas/date_time_iso8601"
},
"secondary_auth_token": {
"type": "string"
"$ref": "#/components/schemas/string"
},
"url": {
"format": "uri",
"type": "string"
"$ref": "#/components/schemas/url"
}
},
"type": "object"
},
"date_time_iso8601": {
"format": "date-time",
"type": "string"
},
"sid_AC": {
"maxLength": 34,
"minLength": 34,
"pattern": "^AC[0-9a-fA-F]{32}$",
"type": "string"
},
"sid_CR": {
"maxLength": 34,
"minLength": 34,
"pattern": "^CR[0-9a-fA-F]{32}$",
"type": "string"
},
"string": {
"type": "string"
},
"url": {
"format": "uri",
"type": "string"
}
},
"securitySchemes": {
Expand Down
Loading

0 comments on commit 61c17b1

Please sign in to comment.