mirror of
https://github.com/penpot/penpot.git
synced 2026-11-18 16:12:24 +00:00
Files written by old Penpot versions hold maps where an svg attribute value should be, such as a `:filter` that once read `url(#filter_2)`. Since #12006 the `:svg-attrs` schema is closed and admits scalars only, and migration 0035 kept those maps, so the file data check at the end of every migration rejected the file. Such a file can be neither imported nor opened. Two built-in templates, Avataaars and Tutorial for beginners, are among them. `attrs->kebab-props` now drops a value that is not a string, a number, or a boolean, at the top level and inside `:style`. Migration 0035 and every birth path go through it, so stored attrs match the schema. Of the 143 files in penpot/penpot-files, 4 fail to import at `:svg-attrs :filter` before this change, and all 4 import after it. AI-assisted-by: claude-opus-5-5