feed
feed copied to clipboard
RSS 2 Item Author element totally wrong
As per the RSS2 spec
<author>is an optional sub-element of<item>.It's the email address of the author of the item. For newspapers and magazines syndicating via RSS, the author is the person who wrote the article that the
<item>describes. For collaborative weblogs, the author of the item might be different from the managing editor or webmaster. For a weblog authored by a single individual it would make sense to omit the<author>element.
<author>[email protected] (Lawyer Boyer)</author>
Currently, this package defines an Author object with an optional name, email and link. If anything, email should be required. Link is not needed.
The current implementation is broken and does not correctly adhere to RSS 2.0.
The tricky thing is that this package tries to wrap RSS2, Atom and JSON Feed using a single Feed Options schema. And all these specs doesn't match in every way.
I suggest you don't rely on the type definition to know if it adhere to the specs.
Additionally, we could provide a StrictFeedOptions that only allow undefined properties on fields that are not required in the 3 different specs.
@jooola in that caase, this library should provide schemas for each feed type, or remove all assumptions eg the author issue I outlined.
I agree.
This is also a blocker for me. I might try the enhance this library. But I need @jpmonette around in order to merge these enhancements.
Any update on this? Do you need a help?
Is there any way to JUST have the email listed in the author field? I've tried setting the name field to null or undefined, but then it won't render any