Liking cljdoc? Tell your friends :D

atom-validator.core

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)
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)
raw docstring

parse-feedclj

(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.
raw docstring

valid?clj

(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.
raw docstring

validate-entryclj

(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:

  • 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 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"})
raw docstring

validate-feedclj

(validate-feed feed)
(validate-feed feed
               {:keys [semantic? strict?] :or {semantic? true strict? 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})

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})
raw docstring

versionclj

Library version, read from POM at compile time.

Library version, read from POM at compile time.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close