Skip to content

The RSS spec does not require an item title, but astrojs/rss does #9577

@robmen

Description

@robmen

Astro Info

Astro                    v4.0.8
Node                     v20.10.0
System                   Windows (x64)
Package Manager          pnpm
Output                   static
Adapter                  none
Integrations             @astrojs/sitemap

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

The RSS specification calls out that the item title is optional if the item description is present:

All elements of an item are optional, however at least one of title or description must be present.
-- https://cyber.harvard.edu/rss/rss.html#hrelementsOfLtitemgt

However the rss() in astro requires an title:

08:49:48 λ src/pages/blog/rss.xml.js
08:49:48   └─ /blog/rss.xml[RSS] Invalid or missing options:
Invalid input (items)
The `items` property requires properly typed `title`, `pubDate`, and `link` keys.
Check your collection's schema, and visit https://docs.astro.build/en/guides/rss/#generating-items for more info.

What's the expected result?

Do not require a title element for RSS items if a description element is present.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-aoal5a?file=src%2Fcontent%2Fblog%2Fpost-only-desc.md

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)pkg: rssRelated to the `@astrojs/rss` package (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions