Open ryanmcgrath opened 3 weeks ago
Indeed, such enum would prevent someone to author a non-compliant RSS. On the other hand, it won't parse and reject such RSS too. Having a struct allows to consume non-compliant RSS and let a user to make a choice.
Ehhhh, I see your point.
If nothing else, might be useful to add a note to the struct docstring - for someone like me who's only ever looked at the spec once in an eternity, it might be a helpful thing to call out so people don't further author non-compliant feeds.
Appreciate the library!
RFC 4287 notes:
The current structure of
Content
is:Given the text in the RFC, part of me thinks
Content
should be an enum akin to:Feels like this would help avoid inadvertently going against spec - but if I'm off my rocker please let me know.