Liking cljdoc? Tell your friends :D

boundary.core.validation

Legacy validation namespace maintained for backward compatibility.

This namespace provides the original validation interface while supporting the new structured result format when BND_DEVEX_VALIDATION is enabled.

New code should use:

  • boundary.core.validation.result
  • boundary.core.validation.registry
  • boundary.core.validation.codes

This namespace will delegate to new implementations when feature flag is enabled.

Legacy validation namespace maintained for backward compatibility.

This namespace provides the original validation interface while supporting
the new structured result format when BND_DEVEX_VALIDATION is enabled.

New code should use:
  - boundary.core.validation.result
  - boundary.core.validation.registry
  - boundary.core.validation.codes

This namespace will delegate to new implementations when feature flag is enabled.
raw docstring

devex-enabled?clj

(devex-enabled?)

Check if DevEx validation features are enabled.

Returns: Boolean indicating if DevEx validation is enabled

Check if DevEx validation features are enabled.

Returns:
  Boolean indicating if DevEx validation is enabled
sourceraw docstring

error-mapclj

(error-map field code message)
(error-map field code message opts)

Create structured error map (delegates to validation.result).

Create structured error map (delegates to validation.result).
sourceraw docstring

failure-resultclj

(failure-result errors)
(failure-result errors warnings)

Create failure result (delegates to validation.result).

Create failure result (delegates to validation.result).
sourceraw docstring

get-validated-dataclj

(get-validated-data result)

Get validated data (works with legacy and new format).

Get validated data (works with legacy and new format).
sourceraw docstring

get-validation-errorsclj

(get-validation-errors result)

Get validation errors (works with legacy and new format).

Get validation errors (works with legacy and new format).
sourceraw docstring

success-resultclj

(success-result data)
(success-result data warnings)

Create success result (delegates to validation.result).

Create success result (delegates to validation.result).
sourceraw docstring

validate-cli-argsclj

(validate-cli-args schema args transformer)

Validate CLI arguments (legacy convenience function).

Validate CLI arguments (legacy convenience function).
sourceraw docstring

validate-requestclj

(validate-request schema request transformer)

Validate API request (legacy convenience function).

Validate API request (legacy convenience function).
sourceraw docstring

validate-with-transformclj

(validate-with-transform schema data transformer)

Validate data with transformation (legacy interface).

When BND_DEVEX_VALIDATION is enabled, returns enhanced result format. Otherwise maintains legacy format for backward compatibility.

Args: schema: Malli schema data: Data to validate transformer: Malli transformer

Returns: {:valid? boolean :data map :errors ...} (format depends on feature flag)

Validate data with transformation (legacy interface).

When BND_DEVEX_VALIDATION is enabled, returns enhanced result format.
Otherwise maintains legacy format for backward compatibility.

Args:
  schema: Malli schema
  data: Data to validate
  transformer: Malli transformer

Returns:
  {:valid? boolean :data map :errors ...} (format depends on feature flag)
sourceraw docstring

validation-passed?clj

(validation-passed? result)

Check if validation passed (works with legacy and new format).

Args: result: Validation result map

Returns: Boolean indicating if validation passed

Check if validation passed (works with legacy and new format).

Args:
  result: Validation result map

Returns:
  Boolean indicating if validation passed
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