{"record":{"id":"81fbd31ad598e699","repo":"zeroclaw-labs/zeroclaw","slug":"field-must-not-be-empty","errorCode":null,"errorMessage":"'{field}' must not be empty","messagePattern":"'(.+?)' must not be empty","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-tools/src/model_routing_config.rs","lineNumber":186,"sourceCode":"\n    fn parse_non_empty_string(args: &Value, field: &str) -> anyhow::Result<String> {\n        let value = args\n            .get(field)\n            .and_then(Value::as_str)\n            .ok_or_else(|| {\n                ::zeroclaw_log::record!(\n                    WARN,\n                    ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Reject)\n                        .with_outcome(::zeroclaw_log::EventOutcome::Failure)\n                        .with_attrs(::serde_json::json!({\"param\": field})),\n                    \"model_routing_config: missing required string param\"\n                );\n                anyhow::Error::msg(format!(\"Missing '{field}'\"))\n            })?\n            .trim();\n\n        if value.is_empty() {\n            anyhow::bail!(\"'{field}' must not be empty\");\n        }\n\n        Ok(value.to_string())\n    }\n\n    fn parse_optional_string_update(args: &Value, field: &str) -> anyhow::Result<MaybeSet<String>> {\n        let Some(raw) = args.get(field) else {\n            return Ok(MaybeSet::Unset);\n        };\n\n        if raw.is_null() {\n            return Ok(MaybeSet::Null);\n        }\n\n        let value = raw\n            .as_str()\n            .ok_or_else(|| {\n                ::zeroclaw_log::record!(","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-tools/src/model_routing_config.rs#L168-L204","documentation":"Error \"'{field}' must not be empty\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-tools/src/model_routing_config.rs:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a non-empty value for the field."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}