From a0870624b69dd3f1a2077a56cada26efb886f77d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 20 Nov 2023 12:02:32 +0100 Subject: [PATCH] :paperclip: Temporary comment file schema validation --- common/src/app/common/files/validate.cljc | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/common/src/app/common/files/validate.cljc b/common/src/app/common/files/validate.cljc index de0d9f8d7..20d167279 100644 --- a/common/src/app/common/files/validate.cljc +++ b/common/src/app/common/files/validate.cljc @@ -445,18 +445,18 @@ Raises a validation exception on first error found." ([file] (validate-file! file nil)) - ([{:keys [id data] :as file} libraries] - (when-not (valid-fdata? data) - (if (some? *errors*) - (vswap! *errors* conj - {:code :invalid-file-data-structure - :hint (str/ffmt "invalid file data structure found on file '%'" id) - :file-id id}) - (ex/raise :type :validation - :code :data-validation - :hint (str/ffmt "invalid file data found on file '%'" id) - :file-id id - ::sm/explain (get-fdata-explain data)))) + ([{:keys [data] :as file} libraries] + ;; (when-not (valid-fdata? data) + ;; (if (some? *errors*) + ;; (vswap! *errors* conj + ;; {:code :invalid-file-data-structure + ;; :hint (str/ffmt "invalid file data structure found on file '%'" id) + ;; :file-id id}) + ;; (ex/raise :type :validation + ;; :code :data-validation + ;; :hint (str/ffmt "invalid file data found on file '%'" id) + ;; :file-id id + ;; ::sm/explain (get-fdata-explain data)))) ;; If `libraries` is provided, this means the full file ;; validation is activated so we proceed to execute the