ExecutionPlane.Codec (execution_plane v0.1.0)

Copy Markdown View Source

Canonical JSON codec helpers for root boundary contracts.

Summary

Functions

decode!(json, module)

@spec decode!(String.t(), module()) :: struct()

digest(value)

@spec digest(struct() | map() | list() | String.t() | integer() | boolean() | nil) ::
  String.t()

encode!(value)

@spec encode!(struct() | map()) :: String.t()

round_trip!(value, module \\ nil)

@spec round_trip!(
  struct(),
  module()
) :: struct()