Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

AtomFormatter should not require "author" on every entry. #43

@jlunman

Description

@jlunman

The atom spec says:

atom:entry elements MUST contain one or more atom:author elements,
unless ... the atom:feed element contains an atom:author element itself.

So if there's a feed-level author, a per-entry author is not required. Requiring it makes feed documents needlessly verbose.

Ideally, the following lines should just be removed. The AtomFormatter should probably just format the data as given, and not try to enforce rules where it lacks sufficient state to do so.

if (!hasAuthor)
{
throw new ArgumentException("Author is required");
}

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