Skip to content

Commit 97875a2

Browse files
Podcast locked owner att is now optional.
1 parent 624f0ed commit 97875a2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

validator-worker/common/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function validateChannel(channel: ExtendedXmlNode, callbacks: ValidationCallback
168168
// podcast:locked
169169
ElementValidation.forSingleChild('channel', channel, callbacks, podcastIndexReference('https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#locked'), ...Qnames.PodcastIndex.locked)
170170
.checkValue(v => /^(yes|no)$/.test(v))
171-
.checkRequiredAttribute('owner', isEmailAddress)
171+
.checkOptionalAttribute('owner', isEmailAddress)
172172
.checkRemainingAttributes();
173173

174174
// podcast:funding

validator-worker/static/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2798,7 +2798,7 @@ function validateChannel(channel, callbacks) {
27982798
return `expected a UUIDv5, found a UUIDv${version}`;
27992799
}
28002800
}).checkRemainingAttributes();
2801-
ElementValidation.forSingleChild('channel', channel, callbacks, podcastIndexReference('https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#locked'), ...Qnames.PodcastIndex.locked).checkValue((v)=>/^(yes|no)$/.test(v)).checkRequiredAttribute('owner', isEmailAddress).checkRemainingAttributes();
2801+
ElementValidation.forSingleChild('channel', channel, callbacks, podcastIndexReference('https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#locked'), ...Qnames.PodcastIndex.locked).checkValue((v)=>/^(yes|no)$/.test(v)).checkOptionalAttribute('owner', isEmailAddress).checkRemainingAttributes();
28022802
for (const funding of findChildElements(channel, ...Qnames.PodcastIndex.funding)){
28032803
ElementValidation.forElement('channel', funding, callbacks, podcastIndexReference('https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#funding')).checkValue(isNotEmpty).checkValue(isAtMostCharacters(128)).checkRequiredAttribute('url', isUrl).checkRemainingAttributes();
28042804
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d053ae71a909e6e2ac4854bff6e2559e57f525a7
1+
39158c3f91bb4e9910cf2ed3f914b34ca5ee5f2e

0 commit comments

Comments
 (0)