Selaa lähdekoodia

fix: remove unused class :block/schema validation

classes haven't had :block/schema for awhile
Gabriel Horner 1 vuosi sitten
vanhempi
sitoutus
28b7cf95b4
1 muutettua tiedostoa jossa 1 lisäystä ja 8 poistoa
  1. 1 8
      deps/db/src/logseq/db/frontend/malli_schema.cljs

+ 1 - 8
deps/db/src/logseq/db/frontend/malli_schema.cljs

@@ -41,9 +41,6 @@
                             {:error/message "should be a valid user property namespace"}
                             {:error/message "should be a valid user property namespace"}
                             user-property?]])
                             user-property?]])
 
 
-(def property-ident
-  [:or internal-property-ident user-property-ident])
-
 (def logseq-ident-namespaces
 (def logseq-ident-namespaces
   "Set of all namespaces Logseq uses for :db/ident except for
   "Set of all namespaces Logseq uses for :db/ident except for
   db-attribute-ident. It's important to grow this list purposefully and have it
   db-attribute-ident. It's important to grow this list purposefully and have it
@@ -264,10 +261,6 @@
   (vec
   (vec
    (concat
    (concat
     [:map
     [:map
-     [:block/schema
-      {:optional true}
-      [:map
-       [:properties {:optional true} [:vector property-ident]]]]
      [:db/ident class-ident]]
      [:db/ident class-ident]]
     page-attrs
     page-attrs
     page-or-block-attrs)))
     page-or-block-attrs)))
@@ -509,7 +502,7 @@
 
 
 (let [malli-non-ref-attrs (->> (concat property-attrs page-attrs block-attrs page-or-block-attrs (rest normal-page))
 (let [malli-non-ref-attrs (->> (concat property-attrs page-attrs block-attrs page-or-block-attrs (rest normal-page))
                                (concat (rest file-block) (rest property-value-block)
                                (concat (rest file-block) (rest property-value-block)
-                                       (rest db-ident-key-val) (rest class-page))
+                                       (rest db-ident-key-val) (rest internal-property))
                                (remove #(= (last %) [:set :int]))
                                (remove #(= (last %) [:set :int]))
                                (map first)
                                (map first)
                                set)]
                                set)]