Validating Feed History
Mark Nottingham: Feed Paging and Archiving (nee Feed History) has finally made it to a standards-track RFC.
First thoughts on test cases for adding proper support to this to the Feed Validator. I’m intending to capture notions of what a “best current practice” would say, so I may be extending a beyond what the spec currently says; this means that some of the potential warnings I list below may be a bit overreaching; any that are identified as such, I intend to retract. I’ve identified some of the more questionable ones with a question mark. Feedback welcome.
Updated based on feedback received
first, last, previous, next
ErrorWarning if any of these occur in an entryWarning if any exist without all the others ?Exception:iffirst==self,must be omittednextpreviousException:iflast==self,must be omittedpreviousnext- Error if
fh:completeis also present
prev-archive, next-archive
ErrorWarning if any of these occur within an entry- Error if
fh:completeis also present - Warning if any exist and
currentdoes not exist Warning iffh:archiveis not also present
current
ErrorWarning if this occurs within an entry- Warning if
fh:archiveis not also present - Warning if
fh:completeis present, andcurrentlink doesn't match self
fh:archive
- Error if this occurs within an entry
- Warning if
currentlink is not present - Warning if at least one of
prev-archive,next-archive, orfh:completedoes not exist
fh:complete
- Error if this occurs within an entry
Warning ifcurrentlink is not present ?
Potentially the DuplicateEntries warning may need to be modified if fh:archive or fh:complete elements are also present? If so, it isn’t clear to me how.