parent
8479133d58
commit
61dbceb364
@ -0,0 +1,13 @@
|
||||
(ns wanijo.attribute.domain
|
||||
(:require [wanijo.specs :as specs]
|
||||
[clojure.spec.alpha :as spec]))
|
||||
|
||||
(def types
|
||||
#{"string" "markdown"})
|
||||
(spec/def ::type types)
|
||||
(spec/def ::name
|
||||
(spec/and ::specs/name (complement empty?)))
|
||||
(spec/def ::attribute
|
||||
(spec/keys ::req-un [::name
|
||||
::type
|
||||
::specs/created-at]))
|
Loading…
Reference in new issue