KiwiCodec.ModuleCompiler (kiwi_codec v0.2.2)

Copy Markdown View Source

Compiles .kiwi schema text or parsed schemas into Elixir modules in memory.

This is intended for tests and tooling. Application code should usually use mix kiwi.gen and compile generated source files with the project.

Summary

Functions

compile_schema!(schema, opts)

@spec compile_schema!(
  KiwiCodec.Schema.t(),
  keyword()
) :: [module()]

compile_string!(text, opts)

@spec compile_string!(
  String.t(),
  keyword()
) :: [module()]