fix(session): loosen remaining stored numeric schemas to tolerate legacy data (#26622)

This commit is contained in:
Kit Langton
2026-05-09 22:10:48 -04:00
committed by GitHub
parent c6e6bdf59f
commit 29250a0efb
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ export const FileDiff = Schema.Struct({
// session response and broke session loading on Desktop.
file: Schema.optional(Schema.String),
patch: Schema.optional(Schema.String),
additions: NonNegativeInt,
deletions: NonNegativeInt,
additions: Schema.Finite,
deletions: Schema.Finite,
status: Schema.optional(Schema.Literals(["added", "deleted", "modified"])),
})
.annotate({ identifier: "SnapshotFileDiff" })