Skip to content

Commit 6217ee3

Browse files
authored
Merge pull request #500 from abraham/cleanup-specials
Cleanup special cases
2 parents 1ec8d16 + 9ca1705 commit 6217ee3

File tree

7 files changed

+14
-687
lines changed

7 files changed

+14
-687
lines changed

config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@
44
"minimumMastodonVersion": "4.2.0",
55
"blockedFiles": ["methods/notifications_alpha.md"],
66
"overridesRepository": "https://github.com/abraham/documentation",
7-
"overrideCommits": ["b1d8f95b506e2d734876ef47ec0f4e1feb4f5618"]
7+
"overrideCommits": [
8+
"4590b4302eb9ab4124c7e3670aa8cbe69f03f3e4",
9+
"3b54807103bfa3936029fbb1d17a1fde9f054494",
10+
"0b3f4dfe8e5c404ec83bd22b2ecc52c88e058129",
11+
"b1d8f95b506e2d734876ef47ec0f4e1feb4f5618",
12+
"c6b60e2470226fd7bae1fcfebd4a372775f83419",
13+
"cb223aa9f88db46557ee5722f347055a69e0b3df",
14+
"ed347a1958f584f2a891e15521cffe7aff754a62",
15+
"b7a315c559cb457723c726c1b49f07c35f2bd8a9"
16+
]
817
}

dist/schema.json

Lines changed: 4 additions & 214 deletions
Original file line numberDiff line numberDiff line change
@@ -22327,9 +22327,6 @@
2232722327
},
2232822328
"getSource": {
2232922329
"$ref": "#/components/links/getStatusSourceById"
22330-
},
22331-
"getCard": {
22332-
"$ref": "#/components/links/getStatusCardById"
2233322330
}
2233422331
}
2233522332
},
@@ -23237,9 +23234,6 @@
2323723234
},
2323823235
"getSource": {
2323923236
"$ref": "#/components/links/getStatusSourceById"
23240-
},
23241-
"getCard": {
23242-
"$ref": "#/components/links/getStatusCardById"
2324323237
}
2324423238
}
2324523239
},
@@ -23346,155 +23340,6 @@
2334623340
]
2334723341
}
2334823342
},
23349-
"/api/v1/statuses/{id}/card": {
23350-
"get": {
23351-
"operationId": "getStatusCard",
23352-
"summary": "Fetch preview card",
23353-
"description": "Version history:\n\n0.0.0 - added\\\n2.6.0 - deprecated in favor of card property inlined on Status entity\\\n3.0.0 - removed",
23354-
"tags": [
23355-
"statuses"
23356-
],
23357-
"responses": {
23358-
"200": {
23359-
"description": "[PreviewCard]",
23360-
"headers": {
23361-
"X-RateLimit-Limit": {
23362-
"description": "Number of requests permitted per time period",
23363-
"schema": {
23364-
"type": "integer"
23365-
}
23366-
},
23367-
"X-RateLimit-Remaining": {
23368-
"description": "Number of requests you can still make",
23369-
"schema": {
23370-
"type": "integer"
23371-
}
23372-
},
23373-
"X-RateLimit-Reset": {
23374-
"description": "Timestamp when your rate limit will reset",
23375-
"schema": {
23376-
"type": "string",
23377-
"format": "date-time"
23378-
}
23379-
}
23380-
},
23381-
"content": {
23382-
"application/json": {
23383-
"schema": {
23384-
"$ref": "#/components/schemas/PreviewCard"
23385-
},
23386-
"examples": {
23387-
"PreviewCard200Example": {
23388-
"$ref": "#/components/examples/PreviewCard200Example"
23389-
}
23390-
}
23391-
}
23392-
}
23393-
},
23394-
"401": {
23395-
"description": "Unauthorized",
23396-
"content": {
23397-
"application/json": {
23398-
"schema": {
23399-
"$ref": "#/components/schemas/Error"
23400-
},
23401-
"examples": {
23402-
"Error401Example": {
23403-
"$ref": "#/components/examples/Error401Example"
23404-
}
23405-
}
23406-
}
23407-
}
23408-
},
23409-
"404": {
23410-
"description": "Not found",
23411-
"content": {
23412-
"application/json": {
23413-
"schema": {
23414-
"$ref": "#/components/schemas/Error"
23415-
},
23416-
"examples": {
23417-
"Error404Example": {
23418-
"$ref": "#/components/examples/Error404Example"
23419-
}
23420-
}
23421-
}
23422-
}
23423-
},
23424-
"410": {
23425-
"description": "Gone"
23426-
},
23427-
"422": {
23428-
"description": "Unprocessable Content",
23429-
"content": {
23430-
"application/json": {
23431-
"schema": {
23432-
"$ref": "#/components/schemas/ValidationError"
23433-
},
23434-
"examples": {
23435-
"ValidationError422Example": {
23436-
"$ref": "#/components/examples/ValidationError422Example"
23437-
}
23438-
}
23439-
}
23440-
}
23441-
},
23442-
"429": {
23443-
"description": "Too Many Requests",
23444-
"content": {
23445-
"application/json": {
23446-
"schema": {
23447-
"$ref": "#/components/schemas/Error"
23448-
},
23449-
"examples": {
23450-
"Error429Example": {
23451-
"$ref": "#/components/examples/Error429Example"
23452-
}
23453-
}
23454-
}
23455-
}
23456-
},
23457-
"503": {
23458-
"description": "Unavailable",
23459-
"content": {
23460-
"application/json": {
23461-
"schema": {
23462-
"$ref": "#/components/schemas/Error"
23463-
},
23464-
"examples": {
23465-
"Error503Example": {
23466-
"$ref": "#/components/examples/Error503Example"
23467-
}
23468-
}
23469-
}
23470-
}
23471-
}
23472-
},
23473-
"externalDocs": {
23474-
"url": "https://docs.joinmastodon.org/methods/statuses/#card",
23475-
"description": "Official Mastodon API documentation"
23476-
},
23477-
"deprecated": true,
23478-
"security": [
23479-
{
23480-
"OAuth2": [
23481-
"read:statuses"
23482-
]
23483-
}
23484-
],
23485-
"parameters": [
23486-
{
23487-
"name": "id",
23488-
"in": "path",
23489-
"required": true,
23490-
"description": "id parameter",
23491-
"schema": {
23492-
"type": "string"
23493-
}
23494-
}
23495-
]
23496-
}
23497-
},
2349823343
"/api/v1/statuses/{id}/context": {
2349923344
"get": {
2350023345
"operationId": "getStatusContext",
@@ -23750,9 +23595,6 @@
2375023595
},
2375123596
"getSource": {
2375223597
"$ref": "#/components/links/getStatusSourceById"
23753-
},
23754-
"getCard": {
23755-
"$ref": "#/components/links/getStatusCardById"
2375623598
}
2375723599
}
2375823600
},
@@ -24467,9 +24309,6 @@
2446724309
},
2446824310
"getSource": {
2446924311
"$ref": "#/components/links/getStatusSourceById"
24470-
},
24471-
"getCard": {
24472-
"$ref": "#/components/links/getStatusCardById"
2447324312
}
2447424313
}
2447524314
},
@@ -24683,9 +24522,6 @@
2468324522
},
2468424523
"getSource": {
2468524524
"$ref": "#/components/links/getStatusSourceById"
24686-
},
24687-
"getCard": {
24688-
"$ref": "#/components/links/getStatusCardById"
2468924525
}
2469024526
}
2469124527
},
@@ -25084,9 +24920,6 @@
2508424920
},
2508524921
"getSource": {
2508624922
"$ref": "#/components/links/getStatusSourceById"
25087-
},
25088-
"getCard": {
25089-
"$ref": "#/components/links/getStatusCardById"
2509024923
}
2509124924
}
2509224925
},
@@ -25324,9 +25157,6 @@
2532425157
},
2532525158
"getSource": {
2532625159
"$ref": "#/components/links/getStatusSourceById"
25327-
},
25328-
"getCard": {
25329-
"$ref": "#/components/links/getStatusCardById"
2533025160
}
2533125161
}
2533225162
},
@@ -26057,9 +25887,6 @@
2605725887
},
2605825888
"getSource": {
2605925889
"$ref": "#/components/links/getStatusSourceById"
26060-
},
26061-
"getCard": {
26062-
"$ref": "#/components/links/getStatusCardById"
2606325890
}
2606425891
}
2606525892
},
@@ -26273,9 +26100,6 @@
2627326100
},
2627426101
"getSource": {
2627526102
"$ref": "#/components/links/getStatusSourceById"
26276-
},
26277-
"getCard": {
26278-
"$ref": "#/components/links/getStatusCardById"
2627926103
}
2628026104
}
2628126105
},
@@ -26489,9 +26313,6 @@
2648926313
},
2649026314
"getSource": {
2649126315
"$ref": "#/components/links/getStatusSourceById"
26492-
},
26493-
"getCard": {
26494-
"$ref": "#/components/links/getStatusCardById"
2649526316
}
2649626317
}
2649726318
},
@@ -26705,9 +26526,6 @@
2670526526
},
2670626527
"getSource": {
2670726528
"$ref": "#/components/links/getStatusSourceById"
26708-
},
26709-
"getCard": {
26710-
"$ref": "#/components/links/getStatusCardById"
2671126529
}
2671226530
}
2671326531
},
@@ -26921,9 +26739,6 @@
2692126739
},
2692226740
"getSource": {
2692326741
"$ref": "#/components/links/getStatusSourceById"
26924-
},
26925-
"getCard": {
26926-
"$ref": "#/components/links/getStatusCardById"
2692726742
}
2692826743
}
2692926744
},
@@ -31607,7 +31422,7 @@
3160731422
]
3160831423
},
3160931424
"roles": {
31610-
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or if the account is remote.",
31425+
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or null if the account is remote.",
3161131426
"type": [
3161231427
"array",
3161331428
"null"
@@ -31965,7 +31780,7 @@
3196531780
]
3196631781
},
3196731782
"roles": {
31968-
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or if the account is remote.",
31783+
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or null if the account is remote.",
3196931784
"type": [
3197031785
"array",
3197131786
"null"
@@ -32182,7 +31997,7 @@
3218231997
]
3218331998
},
3218431999
"roles": {
32185-
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or if the account is remote.",
32000+
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or null if the account is remote.",
3218632001
"type": [
3218732002
"array",
3218832003
"null"
@@ -35246,7 +35061,7 @@
3524635061
"format": "uri"
3524735062
},
3524835063
"url": {
35249-
"description": "The location of the original full-size attachment.",
35064+
"description": "The location of the original full-size attachment. Url may be null if the file is still being processed. See [`POST /api/v2/media`]({{< relref \"methods/media\" >}}#v2).",
3525035065
"type": [
3525135066
"string",
3525235067
"null"
@@ -40885,24 +40700,6 @@
4088540700
}
4088640701
]
4088740702
},
40888-
"PreviewCard200Example": {
40889-
"summary": "Example for PreviewCard",
40890-
"value": {
40891-
"url": "https://www.youtube.com/watch?v=OMv_EPMED8Y",
40892-
"title": "♪ Brand New Friend (Christmas Song!)",
40893-
"description": "",
40894-
"type": "video",
40895-
"author_name": "YOGSCAST Lewis & Simon",
40896-
"author_url": "https://www.youtube.com/user/BlueXephos",
40897-
"provider_name": "YouTube",
40898-
"provider_url": "https://www.youtube.com/",
40899-
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/OMv_EPMED8Y?feature=oembed\" frameborder=\"0\" allowfullscreen=\"\"></iframe>",
40900-
"width": 480,
40901-
"height": 270,
40902-
"image": "https://files.mastodon.social/preview_cards/images/014/179/145/original/9cf4b7cf5567b569.jpeg",
40903-
"embed_url": ""
40904-
}
40905-
},
4090640703
"Context200Example": {
4090740704
"summary": "Example for Context",
4090840705
"value": {
@@ -41352,13 +41149,6 @@
4135241149
"parameters": {
4135341150
"id": "$response.body#/id"
4135441151
}
41355-
},
41356-
"getStatusCardById": {
41357-
"operationId": "getStatusCard",
41358-
"description": "Get the status preview card using the response ID",
41359-
"parameters": {
41360-
"id": "$response.body#/id"
41361-
}
4136241152
}
4136341153
}
4136441154
}

0 commit comments

Comments
 (0)