EcsElixirCore.Domain.Model.Features.Sampling.Value.SamplingRuleValidator (ecs_elixir_core v1.0.0)

Copy Markdown

Pure validation logic for sampling rule objects decoded from JSON.

Summary

Functions

validate_decoded(decoded, rule_type)

@spec validate_decoded(any(), :rules20x | :rules40x) :: :ok | {:error, String.t()}

validate_rule(rule, rule_type, index)

@spec validate_rule(any(), :rules20x | :rules40x, pos_integer()) ::
  :ok | {:error, String.t()}