Liking cljdoc? Tell your friends :D

dk.simongray.podcast.feed.schema

The feed model as Malli schemas, made from the tag registry so that they never drift from the model.

The schemas are plain data in the vector syntax of Malli, and Malli itself isn't a dependency. In your own project, give a schema to malli.core/schema, and validate, explain, generate or coerce with it:

(m/validate schema/feed feed)

The schemas describe the model when every value coerced, so validating a parsed feed against them tells you where a value was kept as a string. Enumerations stay strings, since feeds vary their case.

The feed model as Malli schemas, made from the tag registry so that they
never drift from the model.

The schemas are plain data in the vector syntax of Malli, and Malli
itself isn't a dependency. In your own project, give a schema to
malli.core/schema, and validate, explain, generate or coerce with it:

    (m/validate schema/feed feed)

The schemas describe the model when every value coerced, so validating
a parsed feed against them tells you where a value was kept as a
string. Enumerations stay strings, since feeds vary their case.
raw docstring

feedclj/s

The self-contained schema of a feed map.

The self-contained schema of a feed map.
sourceraw docstring

feed-schemaclj/s

(feed-schema)
(feed-schema opts)

The self-contained schema of a feed map, with the opts of schemas.

The self-contained schema of a feed map, with the `opts` of schemas.
sourceraw docstring

itemclj/s

The self-contained schema of an item map.

The self-contained schema of an item map.
sourceraw docstring

ref-keyclj/s

(ref-key tag)

The key that the schema of the element tag is registered under: the tag, in the namespace rss when it has none, e.g. :rss/title for :title.

The key that the schema of the element `tag` is registered under: the
tag, in the namespace rss when it has none, e.g. :rss/title for :title.
sourceraw docstring

schemasclj/s

(schemas)
(schemas {:keys [registry] :or {registry spec/default} :as opts})

The schema of every element of the :registry of opts, and ::feed for the channel map, as a Malli registry. Each element is under its tag, in the namespace rss when it has none.

The tag registry is spec/default by default. Elements that appear under several parents share one schema, since their attributes and children don't depend on the parent.

The schema of every element of the :registry of `opts`, and ::feed for
the channel map, as a Malli registry. Each element is under its tag, in
the namespace rss when it has none.

The tag registry is spec/default by default. Elements that appear under
several parents share one schema, since their attributes and children
don't depend on the parent.
sourceraw docstring

tag-schemaclj/s

(tag-schema tag)
(tag-schema tag opts)

The self-contained schema of the element tag, e.g. (tag-schema :podcast/value), with the opts of schemas.

The self-contained schema of the element `tag`, e.g.
(tag-schema :podcast/value), with the `opts` of schemas.
sourceraw docstring

typesclj/s

The Malli schema of each value type of the registry, which is a string for any other type.

The Malli schema of each value type of the registry, which is a string
for any other type.
sourceraw 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