Arrea.Validation.JsonSchema (Arrea v1.0.0)

Copy Markdown View Source

Validator for Arrea JSON actions.

Defines the expected structure for commands executed via arrea action.

Summary

Functions

Validates the structure of a JSON action map.

Functions

validate(map)

@spec validate(map()) :: :ok | {:error, String.t()}

Validates the structure of a JSON action map.

Expected format: %{ "command" => "show", "args" => ["success", "Hello"] }