From 97875a2128a8346c6474be6ac0af0de34260c064 Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Mon, 12 Dec 2022 20:47:28 -0600 Subject: [PATCH] Podcast locked owner att is now optional. --- validator-worker/common/validator.ts | 2 +- validator-worker/static/app.js | 2 +- validator-worker/static/app.js.sha1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/validator-worker/common/validator.ts b/validator-worker/common/validator.ts index dbb6e2b..67b2dd8 100644 --- a/validator-worker/common/validator.ts +++ b/validator-worker/common/validator.ts @@ -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 diff --git a/validator-worker/static/app.js b/validator-worker/static/app.js index b6b34ae..19a1b79 100644 --- a/validator-worker/static/app.js +++ b/validator-worker/static/app.js @@ -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(); } diff --git a/validator-worker/static/app.js.sha1 b/validator-worker/static/app.js.sha1 index 9155e87..15072ab 100644 --- a/validator-worker/static/app.js.sha1 +++ b/validator-worker/static/app.js.sha1 @@ -1 +1 @@ -d053ae71a909e6e2ac4854bff6e2559e57f525a7 \ No newline at end of file +39158c3f91bb4e9910cf2ed3f914b34ca5ee5f2e \ No newline at end of file