Selecto.Domain.Sections (Selecto v0.4.6)

Copy Markdown

Top-level Selecto domain section classification.

The registry is intentionally diagnostic-only. It tells callers how a domain's authored top-level keys are understood without changing runtime configuration behavior.

Summary

Functions

Returns the diagnostic section categories in stable order.

Classifies a single top-level domain section key.

Classifies all authored top-level keys in a domain map.

Functions

categories()

@spec categories() :: [:canonical | :projection | :proposed | :unknown]

Returns the diagnostic section categories in stable order.

classify(section)

@spec classify(term()) :: :canonical | :projection | :proposed | :unknown

Classifies a single top-level domain section key.

classify_top_level_keys(domain)

@spec classify_top_level_keys(map()) :: %{
  canonical: [term()],
  projection: [term()],
  proposed: [term()],
  unknown: [term()]
}

Classifies all authored top-level keys in a domain map.

Returned section lists preserve the authored key values while sorting them for deterministic diagnostics and tests.