Skip to content

Commit b7461ff

Browse files
committed
Update documentation with latest OpenAPI spec
1 parent baceb13 commit b7461ff

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

openapi.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi" : "3.0.0",
33
"info" : {
44
"description" : "Twitter API v2 available endpoints",
5-
"version" : "2.139",
5+
"version" : "2.140",
66
"title" : "Twitter API v2",
77
"termsOfService" : "https://developer.twitter.com/en/developer-terms/agreement-and-policy.html",
88
"contact" : {
@@ -14961,11 +14961,21 @@
1496114961
"format" : "byte"
1496214962
},
1496314963
"MediaSegments" : {
14964-
"type" : "integer",
14965-
"description" : "An integer value representing the media upload segment.",
14966-
"minimum" : 0,
14967-
"maximum" : 999,
14968-
"format" : "int32"
14964+
"oneOf" : [
14965+
{
14966+
"type" : "integer",
14967+
"description" : "An integer value representing the media upload segment.",
14968+
"minimum" : 0,
14969+
"maximum" : 999,
14970+
"format" : "int32"
14971+
},
14972+
{
14973+
"type" : "string",
14974+
"description" : "An integer value representing the media upload segment.",
14975+
"pattern" : "^[0-9]{1,3}$",
14976+
"format" : "integer"
14977+
}
14978+
]
1496914979
},
1497014980
"MediaTimestampedMetrics" : {
1497114981
"type" : "object",
@@ -14982,7 +14992,7 @@
1498214992
}
1498314993
},
1498414994
"MediaUploadAppendRequest" : {
14985-
"oneOf" : [
14995+
"anyOf" : [
1498614996
{
1498714997
"type" : "object",
1498814998
"required" : [

0 commit comments

Comments
 (0)