Skip to content

Commit 7def3e9

Browse files
committed
Add medium to reply for endpoints:
- search/byterm - search/bytitle - search/music/byterm - podcasts/byfeedid - podcasts/byfeedurl - podcasts/byguid - podcasts/bymedium https://podcastindex.social/@dave/110548591729745201
1 parent 71e1d55 commit 7def3e9

File tree

6 files changed

+38
-1
lines changed

6 files changed

+38
-1
lines changed

api_src/components/properties/feed_podcast.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ properties:
4949
$ref: '../properties/explicit_feed.yaml'
5050
type:
5151
$ref: '../properties/type.yaml'
52+
medium:
53+
$ref: '../properties/medium_feed.yaml'
5254
dead:
5355
$ref: '../properties/dead.yaml'
5456
chash:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# language=Markdown
2+
description: >
3+
The value of the `podcast:medium` attribute for the feed.
4+
5+
6+
See the [medium](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#medium) description in the Podcast Namespace for more information.
7+
type: string
8+
example: "music"

api_src/components/schemas/feed_search.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ properties:
4444
$ref: '../properties/explicit_feed.yaml'
4545
type:
4646
$ref: '../properties/type.yaml'
47+
medium:
48+
$ref: '../properties/medium_feed.yaml'
4749
dead:
4850
$ref: '../properties/dead.yaml'
4951
episodeCount:

docs/pi_api.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,11 @@
939939
],
940940
"example": 0
941941
},
942+
"medium_feed": {
943+
"description": "The value of the `podcast:medium` attribute for the feed.\n\nSee the [medium](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#medium) description in the Podcast Namespace for more information.\n",
944+
"type": "string",
945+
"example": "music"
946+
},
942947
"dead": {
943948
"description": "At some point, we give up trying to process a feed and mark it as dead. This is usually after 1000 errors without a successful pull/parse cycle. Once the feed is marked dead, we only check it once per month.\n",
944949
"type": "integer",
@@ -1057,6 +1062,9 @@
10571062
"type": {
10581063
"$ref": "#/components/schemas/type"
10591064
},
1065+
"medium": {
1066+
"$ref": "#/components/schemas/medium_feed"
1067+
},
10601068
"dead": {
10611069
"$ref": "#/components/schemas/dead"
10621070
},
@@ -1558,6 +1566,9 @@
15581566
"type": {
15591567
"$ref": "#/components/schemas/type"
15601568
},
1569+
"medium": {
1570+
"$ref": "#/components/schemas/medium_feed"
1571+
},
15611572
"dead": {
15621573
"$ref": "#/components/schemas/dead"
15631574
},

docs/pi_api.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,16 @@ components:
11231123
- 0
11241124
- 1
11251125
example: 0
1126+
medium_feed:
1127+
description: >
1128+
The value of the `podcast:medium` attribute for the feed.
1129+
1130+
1131+
See the
1132+
[medium](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#medium)
1133+
description in the Podcast Namespace for more information.
1134+
type: string
1135+
example: music
11261136
dead:
11271137
description: >
11281138
At some point, we give up trying to process a feed and mark it as dead.
@@ -1247,6 +1257,8 @@ components:
12471257
$ref: '#/components/schemas/explicit_feed'
12481258
type:
12491259
$ref: '#/components/schemas/type'
1260+
medium:
1261+
$ref: '#/components/schemas/medium_feed'
12501262
dead:
12511263
$ref: '#/components/schemas/dead'
12521264
episodeCount:
@@ -1727,6 +1739,8 @@ components:
17271739
$ref: '#/components/schemas/explicit_feed'
17281740
type:
17291741
$ref: '#/components/schemas/type'
1742+
medium:
1743+
$ref: '#/components/schemas/medium_feed'
17301744
dead:
17311745
$ref: '#/components/schemas/dead'
17321746
chash:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pi_api_docs",
3-
"version": "1.10.0",
3+
"version": "1.11.0",
44
"private": true,
55
"devDependencies": {
66
"@redocly/openapi-cli": "^1.0.0-beta.80",

0 commit comments

Comments
 (0)