fix(session): use finite archived timestamp schema (#25275)

This commit is contained in:
Kit Langton
2026-05-01 07:57:03 -04:00
committed by GitHub
parent 8c79c58c4d
commit 16ddf5f559
2 changed files with 15 additions and 3 deletions

View File

@@ -142,9 +142,9 @@ const Share = Schema.Struct({
url: Schema.String,
})
// Legacy HTTP accepted any number here, and persisted data may already contain
// negative values. Keep archive timestamps permissive while other clocks stay non-negative.
export const ArchivedTimestamp = Schema.Number
// Legacy HTTP accepted negative values here. Keep archive timestamps permissive
// while excluding non-finite values that cannot round-trip through JSON.
export const ArchivedTimestamp = Schema.Finite
const Time = Schema.Struct({
created: NonNegativeInt,