mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
✨ Change order of hard and soft validation on file update
This commit is contained in:
parent
79d9d79737
commit
83c6354a0a
1 changed files with 6 additions and 6 deletions
|
@ -315,6 +315,12 @@
|
||||||
(update :data cpc/process-changes changes)
|
(update :data cpc/process-changes changes)
|
||||||
|
|
||||||
;; If `libs` is defined, then full validation is performed
|
;; If `libs` is defined, then full validation is performed
|
||||||
|
(cond-> (contains? cf/flags :soft-file-validation)
|
||||||
|
(soft-validate-file! libs))
|
||||||
|
|
||||||
|
(cond-> (contains? cf/flags :soft-file-schema-validation)
|
||||||
|
(soft-validate-file-schema!))
|
||||||
|
|
||||||
(cond-> (and (contains? cf/flags :file-validation)
|
(cond-> (and (contains? cf/flags :file-validation)
|
||||||
(not skip-validate))
|
(not skip-validate))
|
||||||
(val/validate-file! libs))
|
(val/validate-file! libs))
|
||||||
|
@ -323,12 +329,6 @@
|
||||||
(not skip-validate))
|
(not skip-validate))
|
||||||
(val/validate-file-schema!))
|
(val/validate-file-schema!))
|
||||||
|
|
||||||
(cond-> (contains? cf/flags :soft-file-validation)
|
|
||||||
(soft-validate-file! libs))
|
|
||||||
|
|
||||||
(cond-> (contains? cf/flags :soft-file-schema-validation)
|
|
||||||
(soft-validate-file-schema!))
|
|
||||||
|
|
||||||
(cond-> (and (contains? cfeat/*current* "fdata/objects-map")
|
(cond-> (and (contains? cfeat/*current* "fdata/objects-map")
|
||||||
(not (contains? cfeat/*previous* "fdata/objects-map")))
|
(not (contains? cfeat/*previous* "fdata/objects-map")))
|
||||||
(enable-objects-map))
|
(enable-objects-map))
|
||||||
|
|
Loading…
Add table
Reference in a new issue