KiwiCodec.Runtime (kiwi_codec v0.1.0)

Copy Markdown View Source

Interpreter for parsed Kiwi schemas without generated modules.

Prefer generated modules for application code. This runtime is useful for tooling, inspection, and compatibility tests where schemas are loaded at runtime.

Summary

Functions

decode(schema, definition_name, binary)

@spec decode(KiwiCodec.Schema.t(), String.t(), binary()) ::
  map() | String.t() | integer()

encode(schema, definition_name, value)

@spec encode(KiwiCodec.Schema.t(), String.t(), map()) :: binary()