diff --git a/compliance-agent/src/api/handlers/dto.rs b/compliance-agent/src/api/handlers/dto.rs index 399a242..6fd34ed 100644 --- a/compliance-agent/src/api/handlers/dto.rs +++ b/compliance-agent/src/api/handlers/dto.rs @@ -668,12 +668,16 @@ mod tests { license: "MIT".to_string(), count: 42, is_copyleft: false, + category: compliance_core::models::LicenseCategory::Permissive, + confirmed: 3, packages: vec!["serde".to_string()], }; let v = serde_json::to_value(&ls).unwrap(); assert_eq!(v["license"], "MIT"); assert_eq!(v["is_copyleft"], false); assert_eq!(v["count"], 42); + assert_eq!(v["category"], "permissive"); + assert_eq!(v["confirmed"], 3); } // ── Default helper functions ─────────────────────────────────