(instrument-mm fn)Instruments a metamorph function with input validation via Malli schema.
fn - Function to instrument
Returns an instrumented version of fn that validates its input is a metamorph
context map containing:
:metamorph/id - Any value (typically a keyword identifier):metamorph/data - A tech.ml.dataset:metamorph/mode - Either :fit or :transformThrows detailed validation errors on schema violations. Use this to enforce metamorph contract compliance at runtime.
See also: scicloj.metamorph.ml.malli/instrument-ns
Instruments a metamorph function with input validation via Malli schema. `fn` - Function to instrument Returns an instrumented version of `fn` that validates its input is a metamorph context map containing: * `:metamorph/id` - Any value (typically a keyword identifier) * `:metamorph/data` - A tech.ml.dataset * `:metamorph/mode` - Either `:fit` or `:transform` Throws detailed validation errors on schema violations. Use this to enforce metamorph contract compliance at runtime. See also: `scicloj.metamorph.ml.malli/instrument-ns`
(instrument-ns ns)Instruments all Malli-schema functions in a namespace for runtime validation.
ns - Namespace symbol (e.g., 'my.namespace)
Collects all functions with :malli/schema metadata in the namespace and
instruments them to validate inputs at runtime. Throws detailed errors on
schema violations.
Use this to enable validation for an entire namespace during development or testing.
See also: scicloj.metamorph.ml.malli/instrument-mm
Instruments all Malli-schema functions in a namespace for runtime validation. `ns` - Namespace symbol (e.g., `'my.namespace`) Collects all functions with `:malli/schema` metadata in the namespace and instruments them to validate inputs at runtime. Throws detailed errors on schema violations. Use this to enable validation for an entire namespace during development or testing. See also: `scicloj.metamorph.ml.malli/instrument-mm`
(model-options->full-schema model-options)Converts model options map to a full Malli schema with :model-type field.
model-options - Map containing :options key with a Malli schema
Returns a Malli schema that includes the :options schema plus a required
:model-type keyword field. Defaults to empty :map schema if no :options
key is present.
Used internally to validate model option maps during model registration.
Converts model options map to a full Malli schema with `:model-type` field. `model-options` - Map containing `:options` key with a Malli schema Returns a Malli schema that includes the `:options` schema plus a required `:model-type` keyword field. Defaults to empty `:map` schema if no `:options` key is present. Used internally to validate model option maps during model registration.
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 |