Skip to content

podcast:value is allowed in multiple channel elements #1

@jamescridland

Description

@jamescridland

If you try to validate this feed then the validator kicks an error:

Multiple channel <podcast:value> elements are not allowed[[podcastindex]](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value)

The podcast:value tag is now allowed multiple times, to allow for access to multiple payment methods.

I've submitted a pull request to the documentation on Podcast Index, at Podcastindex-org/podcast-namespace#431

The line at

const value = ElementValidation.forSingleChild(level, node, callbacks, podcastIndexReference('https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md#value'), ...Qnames.PodcastIndex.value).checkRequiredAttribute('type', isPodcastValueTypeSlug).checkRequiredAttribute('method', isNotEmpty).checkOptionalAttribute('suggested', isDecimal).checkRemainingAttributes().node;
is the one that checks for single elements, and should probably be deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions