Semantic validation checks beyond RFC 4287 structure. These detect logical inconsistencies in feed content.
Semantic validation checks beyond RFC 4287 structure. These detect logical inconsistencies in feed content.
Mapping of day-of-week numbers (1=Monday) to name patterns.
Mapping of day-of-week numbers (1=Monday) to name patterns.
(extract-day-from-title title)Extract day-of-week name from title if present. Returns {:day-name 'thursday' :normalized 4} or nil.
Extract day-of-week name from title if present.
Returns {:day-name 'thursday' :normalized 4} or nil.(get-day-of-week dt)Get day of week (1=Monday, 7=Sunday) from a datetime.
Get day of week (1=Monday, 7=Sunday) from a datetime.
(validate-day-of-week entry idx)Check that day-of-week in title matches the updated date. This is Issue #1 from the validator requirements.
Example: 'Morning Brief: Thursday, June 19' with updated='2026-06-19' should fail because June 19, 2026 is a Friday, not Thursday.
Check that day-of-week in title matches the updated date. This is Issue #1 from the validator requirements. Example: 'Morning Brief: Thursday, June 19' with updated='2026-06-19' should fail because June 19, 2026 is a Friday, not Thursday.
(validate-entry-semantics entry idx)Run all semantic checks on an entry.
Run all semantic checks on an entry.
(validate-feed-semantics feed)Run semantic checks on entire feed. Returns {:errors [...] :warnings [...]}.
Run semantic checks on entire feed.
Returns {:errors [...] :warnings [...]}.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 |