Expand description
Per-section field visibility helpers.
Used by both the CLI wizard (onboard::offer_advanced_settings) and the
gateway HTTP endpoints (/api/config/list for filtering). One source of
truth so the CLI and dashboard can’t disagree about which fields apply.
Per-provider-family field exclusion is GONE as of #6273 — the typed-family
ModelProviders container only exposes fields that genuinely apply to each
family (every typed *ModelProviderConfig carries only its own surface),
so there’s nothing to suppress. Memory-backend exclusion stays because the
[memory] section is still a single struct carrying every backend’s
sub-tables (the typed-family pattern hasn’t been applied there).
Functions§
- excluded_
paths - Compute the set of full property paths to hide when a client requests
prefix. Returns an empty vec for prefixes that don’t have visibility rules (most of the schema). - is_
excluded - Test whether
pathis one of the excluded entries returned fromexcluded_paths. Handles both exact matches and sub-table prefix markers ("memory.qdrant."matches everymemory.qdrant.*). - memory_
backend_ excludes - Exclude list for the top-level
[memory]walk based on the active backend.