SelectoMix.DomainInspection (selecto_mix v0.4.6)

Builds Studio/tooling inspection JSON from normalized Selecto domain artifacts.

This module keeps the same artifact-first workflow as export/check/inspect/diff and delegates the actual structured inspection to Selecto.Domain.describe/1 at runtime.

Summary

Types

inspection_error()

@type inspection_error() ::
  SelectoMix.DomainExport.artifact_error()
  | :selecto_domain_describer_unavailable
  | {:inspection_failed, term()}
  | {:invalid_describer_result, term()}

Functions

describe_file(path, opts \\ [])

@spec describe_file(
  Path.t(),
  keyword()
) :: {:ok, map()} | {:error, inspection_error()}

encode!(inspection_artifact, opts \\ [])

@spec encode!(
  map(),
  keyword()
) :: String.t()

format_error(reason)

@spec format_error(inspection_error()) :: String.t()