Liking cljdoc? Tell your friends :D

bff.validator


BffValidatorcljprotocol

validateclj

(validate this args ctx)
source

run-validationclj

(run-validation endpoint args ctx validators)

Run built-in and custom validation for an endpoint.

Returns a seq of {:message ...} error maps, or nil if everything passes. Built-in arg rules run first, then the custom :validator declared on the endpoint (looked up in validators).

validators is the caller-owned registry map ("key" → impl); pass an empty map when no custom validators are configured.

Run built-in and custom validation for an endpoint.

Returns a seq of {:message ...} error maps, or nil if everything passes.
Built-in arg rules run first, then the custom :validator declared on the
endpoint (looked up in `validators`).

`validators` is the caller-owned registry map ("key" → impl); pass an
empty map when no custom validators are configured.
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