Skip to content

Commit

Permalink
Podcast locked owner att is now optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnspurlock-skymethod committed Dec 13, 2022
1 parent 624f0ed commit 97875a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion validator-worker/common/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function validateChannel(channel: ExtendedXmlNode, callbacks: ValidationCallback
// podcast:locked
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)
.checkOptionalAttribute('owner', isEmailAddress)
.checkRemainingAttributes();

// podcast:funding
Expand Down
2 changes: 1 addition & 1 deletion validator-worker/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2798,7 +2798,7 @@ function validateChannel(channel, callbacks) {
return `expected a UUIDv5, found a UUIDv${version}`;
}
}).checkRemainingAttributes();
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();
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();
for (const funding of findChildElements(channel, ...Qnames.PodcastIndex.funding)){
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();
}
Expand Down
2 changes: 1 addition & 1 deletion validator-worker/static/app.js.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d053ae71a909e6e2ac4854bff6e2559e57f525a7
39158c3f91bb4e9910cf2ed3f914b34ca5ee5f2e

0 comments on commit 97875a2

Please sign in to comment.