Skip to main content

Module workspace

Module workspace 

Source
Expand description

Workspace and source-discovery diagnostic data types (WorkspaceDiagnostic, WorkspaceDiagnosticKind). Re-exported by fallow-config for back-compat; embedded directly by fallow-output so workspace_diagnostics[] keeps its typed JSON schema. The schemars::JsonSchema derive is gated on the schema feature. Workspace and source-discovery diagnostic data types.

The serializable WorkspaceDiagnostic / WorkspaceDiagnosticKind pair lives here, upstream of both fallow-config (which owns the registry and emission logic and re-exports these types for back-compat) and fallow-output (which embeds Vec<WorkspaceDiagnostic> in its JSON envelopes). Keeping the DATA types in fallow-types lets the output layer reference the real, schema-bearing type instead of an opaque serde_json::Value newtype, so workspace_diagnostics[] keeps its typed kind/path/message shape (and the 7-variant kind oneOf) in docs/output-schema.json. fallow-config cannot be imported by fallow-output (config depends on output), so the type could not stay in config without re-introducing the empty-schema DTO workaround.

Structs§

WorkspaceDiagnostic
A diagnostic about a workspace-discovery candidate.

Enums§

WorkspaceDiagnosticKind
Why a workspace-discovery candidate was rejected, or why a sibling directory looked workspace-like but was not declared.