ZoiForge.Config (ZoiForge v0.1.0)

Copy Markdown View Source

Generation options for ZoiForge.Generator.

Summary

Functions

Builds a config struct from a keyword list or returns the given %Elixir.ZoiForge.Config{} unchanged.

Types

t()

@type t() :: %ZoiForge.Config{
  output_dir: String.t(),
  prefix: String.t() | nil,
  source_dir: String.t()
}

Functions

new(config)

@spec new(t() | keyword()) :: t()

Builds a config struct from a keyword list or returns the given %Elixir.ZoiForge.Config{} unchanged.

When :prefix is nil, module names are derived from schema file paths only.