SelectoMix.DomainExport (selecto_mix v0.4.7)
Builds JSON-ready artifacts for normalized Selecto domains.
The exporter intentionally calls into Selecto.Domain.normalize/1 at runtime
so selecto_mix can stay a tooling package while host projects provide the
Selecto version they are using.
Summary
Functions
Canonicalizes JSON objects to string keys recursively.
Types
Functions
Canonicalizes JSON objects to string keys recursively.
If both atom and string forms of one key are present, the explicit string key wins.
@spec check_artifact( map(), keyword() ) :: {:ok, map()} | {:error, artifact_error()}
@spec check_file( Path.t(), keyword() ) :: {:ok, map()} | {:error, artifact_error()}
@spec diff_files(Path.t(), Path.t(), keyword()) :: {:ok, map()} | {:error, artifact_error()}
@spec export( String.t() | module(), keyword() ) :: {:ok, map()} | {:error, artifact_error()}
@spec format_error(artifact_error()) :: String.t()
@spec summary_file( Path.t(), keyword() ) :: {:ok, map()} | {:error, artifact_error()}