Skip to main content

compile_config

Function compile_config 

Source
pub fn compile_config(yaml: &str) -> Result<CompiledConfig, ParseError>
Expand description

Compile a YAML config into a CompiledConfig (routes + plugin registry).

Routes with no APL fields populated (no authorization: / pre_invocation: / post_invocation: / args: / result:) are omitted from routes, per apl-design §5 “Routes without APL blocks fall back to legacy plugin-chain execution.” A route-level plugins: override block alone is not enough — overrides only have meaning when the route actually dispatches plugins via APL steps, so an override-only route is treated as legacy.