Backplane.JsonSchema.Validator.Rules (backplane_json_schema v1.10.58)

Copy Markdown

Dispatches compiled Backplane.JsonSchema.Types.Rule structs to their runtime validation implementations.

This keeps Backplane.JsonSchema.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,
     [Backplane.JsonSchema.Types.Error.t()]
     | Backplane.JsonSchema.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.