ZoiForge.Verify (ZoiForge v0.1.0)

Copy Markdown View Source

Verifies that generated schema modules match a fresh codegen run.

Summary

Functions

Verifies generated output is up to date with vendored schemas.

Runs verification and raises when generated output is stale.

Functions

run(config_or_opts)

@spec run(ZoiForge.Config.t() | keyword()) :: :ok | {:error, {:stale, [String.t()]}}

Verifies generated output is up to date with vendored schemas.

Returns :ok when fresh, or {:error, {:stale, paths}} when output differs.

run!(config_or_opts)

@spec run!(ZoiForge.Config.t() | keyword()) :: :ok

Runs verification and raises when generated output is stale.