RFC 4287 Atom feed validation library.
Validates Atom feeds for:
RFC 4287 Atom feed validation library. Validates Atom feeds for: - Required elements per RFC 4287 - Valid date formats - Feed freshness (updated timestamp) - URL validity - Semantic consistency (day-of-week in titles)
(parse-feed source)Parse an Atom feed from XML string or input stream. Returns a map with :id, :title, :updated, :entries, etc.
Parse an Atom feed from XML string or input stream. Returns a map with :id, :title, :updated, :entries, etc.
(valid? feed)(valid? feed opts)Quick check if a feed is valid. Returns true/false.
Quick check if a feed is valid. Returns true/false.
(validate-entry entry)(validate-entry entry
{:keys [semantic? strict?] :or {semantic? true strict? false}})Validate a single Atom entry. Returns {:valid? bool :errors [...] :warnings [...]}.
Arguments:
Options:
Example: (validate-entry {:title "Morning Brief: Thursday, June 19" :updated "2026-06-19T00:00:00Z" :id "urn:uuid:123"})
Validate a single Atom entry. Returns {:valid? bool :errors [...] :warnings [...]}.
Arguments:
- entry: A map with :id, :title, :updated, :links, etc.
Options:
- :semantic? - Enable semantic checks (default true)
- :strict? - Treat warnings as errors (default false)
Example:
(validate-entry {:title "Morning Brief: Thursday, June 19"
:updated "2026-06-19T00:00:00Z"
:id "urn:uuid:123"})(validate-feed feed)(validate-feed feed
{:keys [semantic? strict?] :or {semantic? true strict? false}})Validate an Atom feed. Returns {:valid? bool :errors [...] :warnings [...]}.
Arguments:
Options:
Example: (validate-feed "<feed>...</feed>") (validate-feed parsed-map {:semantic? false})
Validate an Atom feed. Returns {:valid? bool :errors [...] :warnings [...]}.
Arguments:
- feed: Either a parsed feed map or XML string/input-stream
Options:
- :semantic? - Enable semantic checks like day-of-week (default true)
- :strict? - Treat warnings as errors (default false)
Example:
(validate-feed "<feed>...</feed>")
(validate-feed parsed-map {:semantic? false})Library version, read from POM at compile time.
Library version, read from POM at compile time.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |