OpenCut/apps
Rene Zander 30179bfdc3
fix: validate imported project JSON with a schema before persisting
importProjectFromJSON only checked a few top-level fields before writing
the project to storage, so a malformed .opencut.json could be saved and
only fail later when the project is opened. Add a Zod schema that validates
the full timeline shape (scenes -> tracks -> elements), settings, and
timeline view state before saveProject, replacing the presence checks and
the unchecked `as ExportedProjectJSON` cast. Zod is already a dependency,
so no new deps. Extra/unknown fields are tolerated for forward
compatibility; the raw parsed object is persisted so no element fields are
dropped.
2026-07-16 15:39:05 +00:00
..
desktop feat: init desktop app 2026-03-29 15:58:42 +02:00
web fix: validate imported project JSON with a schema before persisting 2026-07-16 15:39:05 +00:00