fix(#701): doctor JSON details[] now {key,value} objects; prose preserved as details_prose[]; acceptance check passes

This commit is contained in:
YeonGyu-Kim
2026-05-26 13:10:05 +09:00
parent db80c9b96e
commit cc86f54d65

View File

@@ -2124,7 +2124,11 @@ impl DiagnosticCheck {
), ),
("summary".to_string(), Value::String(self.summary.clone())), ("summary".to_string(), Value::String(self.summary.clone())),
( (
"details".to_string(), // #701 (complete): `details[]` is now the canonical structured form —
// `{key, value}` objects instead of padded prose strings. The legacy
// prose representation is preserved as `details_prose[]` for callers
// that still scrape the formatted strings.
"details_prose".to_string(),
Value::Array( Value::Array(
self.details self.details
.iter() .iter()
@@ -2134,10 +2138,8 @@ impl DiagnosticCheck {
), ),
), ),
( (
// #701: structured key/value pairs parsed from prose detail strings. // details[] is now structured {key,value} objects (was prose strings).
// Each detail string is `"Key Label value"` separated by 2+ spaces. "details".to_string(),
// Booleans (`true`/`false`) and integers are emitted as JSON scalars.
"detail_entries".to_string(),
Value::Array( Value::Array(
self.details self.details
.iter() .iter()