fix(cli): consume canonical output validation state

This commit is contained in:
morluto committed 2026-10-24 04:08:59 +08:00
1 parent 94081b0103
commit fc706570d9
2 files changed
+3 -5

No files matched your search

+1 -5
View File
@@ -116,11 +116,7 @@ export const createCliResultOutput = (
destination: Writable,
): CliResultOutput | undefined => {
let options = initialOptions;
if (
(options.parseError && options.format !== "jsonl") ||
!options.validation.ok
)
return undefined;
if (!options.validation.ok) return undefined;
let format = options.format as "json" | "jsonl" | "yaml" | "toon" | "md";
let handled = false;
let failed = false;