macOS client parity review

This commit is contained in:
Ian Gulliver
2026-10-17 10:54:06 -07:00
parent b85de9a2d0
commit 31037e1c9f
24 changed files with 651 additions and 225 deletions
-9
View File
@@ -780,12 +780,3 @@ private func resultText(_ content: (any Sendable)?) -> String {
}
return prettyJSON(content)
}
private func compactJSON(_ v: (any Sendable)?) -> String {
let encoder = JSONEncoder()
encoder.outputFormatting = [.sortedKeys, .withoutEscapingSlashes]
guard let container = try? OpenAPIValueContainer(unvalidatedValue: v), let data = try? encoder.encode(container) else {
return String(describing: v)
}
return String(decoding: data, as: UTF8.self)
}