Compiles .kiwi schema text into Elixir modules or source files.
Summary
Functions
Compiles a parsed schema into Elixir modules in memory.
Compiles schema text into Elixir modules in memory.
Generates Elixir source files from schema text.
Generates Elixir source files from a parsed schema.
Functions
@spec compile_schema!( KiwiCodec.Schema.t(), keyword() ) :: [module()]
Compiles a parsed schema into Elixir modules in memory.
Compiles schema text into Elixir modules in memory.
This is intended for tests and tooling. Application code should usually use
generate_files!/2 through mix kiwi.gen and compile generated source files
with the project.
Generates Elixir source files from schema text.
@spec generate_schema_files!( KiwiCodec.Schema.t(), keyword() ) :: [Path.t()]
Generates Elixir source files from a parsed schema.