Working through getting record creation going
This commit is contained in:
parent
8fbe32c5c2
commit
8fbeaa55e3
|
@ -475,7 +475,7 @@
|
|||
[property]
|
||||
(and
|
||||
(= (:tag property) :property)
|
||||
(not (#{"link"} (:type (:attrs property))))
|
||||
(not (#{"link" "list"} (:type (:attrs property))))
|
||||
(not (system-generated? property))))
|
||||
|
||||
|
||||
|
@ -509,6 +509,17 @@
|
|||
(all-properties ~entity)))
|
||||
|
||||
|
||||
(defn required-properties
|
||||
"Return the properties of this `entity` which are required and are not
|
||||
system generated."
|
||||
[entity]
|
||||
(filter
|
||||
#(and
|
||||
(= (:required (:attrs %)) "true")
|
||||
(not (system-generated? %)))
|
||||
(descendants-with-tag entity :property)))
|
||||
|
||||
|
||||
(defmacro key-properties
|
||||
[entity]
|
||||
`(children-with-tag (first (children-with-tag ~entity :key)) :property))
|
||||
|
|
Loading…
Reference in a new issue