Backplane. SkillProtocol. Wire
(backplane_skill_protocol v0.9.0)
Copy Markdown
Strict JSON encoding and decoding for Skill Protocol v1.
Summary
Functions
@spec decode_catalog(binary(), String.t()) :: {:ok, map()} | {:error, Backplane.SkillProtocol.Error.t()}
@spec decode_error(binary(), atom()) :: {:ok, Backplane.SkillProtocol.Error.t()} | {:error, Backplane.SkillProtocol.Error.t()}
@spec decode_manifest(binary(), String.t(), keyword()) :: {:ok, Backplane.SkillProtocol.BundleManifest.t()} | {:error, Backplane.SkillProtocol.Error.t()}
@spec decode_manifest_map(map(), String.t(), keyword()) :: {:ok, Backplane.SkillProtocol.BundleManifest.t()} | {:error, Backplane.SkillProtocol.Error.t()}
@spec manifest_map(Backplane.SkillProtocol.BundleManifest.t()) :: map()