Default invariants to check (parse-valid is always checked first automatically).
Default invariants to check (parse-valid is always checked first automatically).
(env? x)Returns true if x is an environment variable reference (env:VAR_NAME).
Returns true if x is an environment variable reference (env:VAR_NAME).
(invariant-violations edns)(invariant-violations edns additional-invariants)Returns invariant violations (or nil if there were none).
Always checks parse-valid first. For successfully parsed representations, runs the additional invariants provided (defaults to all standard invariants).
There is no way to skip the parse-valid check - it is always run first.
Returns invariant violations (or nil if there were none). Always checks parse-valid first. For successfully parsed representations, runs the additional invariants provided (defaults to all standard invariants). There is no way to skip the parse-valid check - it is always run first.
The most recent stable version for representations
The most recent stable version for representations
(parse-all edns)(ref? x)Returns true if x is a reference string (ref:name).
Returns true if x is a reference string (ref:name).
(resolve-env-var x)Resolves an environment variable reference to its value. Returns the value from the environment, or nil if x is not an env var or the var is not set.
Resolves an environment variable reference to its value. Returns the value from the environment, or nil if x is not an env var or the var is not set.
(unref x)Strips the 'ref:' prefix from a reference string. Returns the name portion, or nil if x is not a ref.
Strips the 'ref:' prefix from a reference string. Returns the name portion, or nil if x is not a ref.
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 |