JSONSchex.Validator.Rules (jsonschex v0.6.0)

Copy Markdown View Source

Dispatches compiled JSONSchex.Types.Rule structs to their runtime validation implementations.

This keeps JSONSchex.Validator focused on orchestration while centralizing rule-specific execution in one place.

Summary

Functions

Applies a compiled rule to data in the given validation context.

Types

result()

@type result() ::
  :ok
  | {:ok, MapSet.t()}
  | {:error, [JSONSchex.Types.Error.t()] | JSONSchex.Types.ErrorContext.t()}

validation_context()

@type validation_context() :: {list(), MapSet.t(), term()}

Functions

apply(rule, data, ctx)

Applies a compiled rule to data in the given validation context.