Co-authored-by: Developer <temp@example.com>
This commit is contained in:
@@ -21,6 +21,9 @@ export type Patch = typeof Patch.Type
|
||||
|
||||
export const FileDiff = Schema.Struct({
|
||||
file: Schema.String,
|
||||
// Optional because legacy/imported `summary_diffs` on disk may omit
|
||||
// the patch text (see #26574). Required-Schema rejected the whole
|
||||
// /session/<id>/diff response and broke session loading on Desktop.
|
||||
patch: Schema.optional(Schema.String),
|
||||
additions: NonNegativeInt,
|
||||
deletions: NonNegativeInt,
|
||||
|
||||
Reference in New Issue
Block a user