Expand description
JSON Schema documents and zero-config rule defaults re-exported from
fallow-config for embedders such as the MCP resource surface.
JSON Schema documents and zero-config rule defaults, re-exported from
fallow-config for embedders that must not depend on the config crate
directly (the MCP server’s fallow://schema/* and fallow://issue-types
resources). Each function returns the exact document the matching CLI
command prints (fallow config-schema, fallow plugin-schema,
fallow rule-pack-schema), so a cached resource and a CLI dump agree.
Functions§
- config_
schema - JSON Schema of the fallow config file (
fallow config-schema). - default_
rule_ severities - The zero-config
rules.*severities as a flat JSON object keyed by config key (unused-exports,security-sink, …), serialized once fromRulesConfig::default(). This is the single source of default severities forfallow schemaand the MCP issue-type resource. Infallible in practice (a flat struct ofSeverityenums); the empty-object fallback keeps callers panic-free and simply yields no default severity if serialization ever changed shape. - is_
rule_ severity_ key - Whether
keynames arules.*config field (a kebab-case key ofdefault_rule_severities). - plugin_
schema - JSON Schema of a user-authored external plugin (
fallow plugin-schema). - rule_
pack_ schema - JSON Schema of a declarative rule pack (
fallow rule-pack-schema).