Liking cljdoc? Tell your friends :D

wagoe.core.utils.validation

Value predicates the CLI layer validates arguments with.

It also held a second implementation of validate-with-transform, validate-cli-args, validate-request and the result accessors — the same names wagoe.core.validation defined, with a different implementation and no compiled-schema cache. Nothing outside its own tests called them (BOU-323).

Schema validation goes through wagoe.core.validation, whose validators are compiled once and cached; result shapes live in wagoe.core.validation.result.

Value predicates the CLI layer validates arguments with.

It also held a second implementation of validate-with-transform,
validate-cli-args, validate-request and the result accessors — the same
names wagoe.core.validation defined, with a different implementation and no
compiled-schema cache. Nothing outside its own tests called them (BOU-323).

Schema validation goes through wagoe.core.validation, whose validators are
compiled once and cached; result shapes live in
wagoe.core.validation.result.
raw docstring

valid-output-format?clj

(valid-output-format? s)

Check if format is valid (table or json).

This is commonly used in CLI option validation for output format selection.

Args: s: String to validate as format

Returns: Boolean indicating if format is valid

Check if format is valid (table or json).

This is commonly used in CLI option validation for output format selection.

Args:
  s: String to validate as format

Returns:
  Boolean indicating if format is valid
sourceraw docstring

valid-uuid?clj

(valid-uuid? s)

Check if string is a valid UUID.

This is commonly used in CLI option validation where UUIDs are required.

Args: s: String to validate as UUID

Returns: Boolean indicating if string is valid UUID

Check if string is a valid UUID.

This is commonly used in CLI option validation where UUIDs are required.

Args:
  s: String to validate as UUID

Returns:
  Boolean indicating if string is valid UUID
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