mirror of
https://github.com/penpot/penpot.git
synced 2025-02-09 00:28:20 -05:00
🐛 Skip validation in files with components v1
This commit is contained in:
parent
fc312ee6dc
commit
3dc629d2ad
1 changed files with 7 additions and 6 deletions
|
@ -461,13 +461,14 @@
|
||||||
"Validate full referential integrity and semantic coherence on file data.
|
"Validate full referential integrity and semantic coherence on file data.
|
||||||
|
|
||||||
Raises a validation exception on first error found."
|
Raises a validation exception on first error found."
|
||||||
[{:keys [data] :as file} libraries]
|
[{:keys [data features] :as file} libraries]
|
||||||
|
(when (contains? features "components/v2")
|
||||||
|
|
||||||
(doseq [page (filter :id (ctpl/pages-seq data))]
|
(doseq [page (filter :id (ctpl/pages-seq data))]
|
||||||
(validate-shape! uuid/zero file page libraries))
|
(validate-shape! uuid/zero file page libraries))
|
||||||
|
|
||||||
(doseq [component (vals (:components data))]
|
(doseq [component (vals (:components data))]
|
||||||
(validate-component! component file))
|
(validate-component! component file)))
|
||||||
|
|
||||||
file)
|
file)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue