You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
582 B
18 lines
582 B
(ns wanijo.specs
|
|
(:require [clojure.spec.alpha :as spec]
|
|
[wanijo.framework.neo4j :as neo4j]))
|
|
|
|
(spec/def ::created_at ::neo4j/date-str)
|
|
(spec/def ::updated_at ::neo4j/date-str)
|
|
(spec/def ::created-at
|
|
(spec/and string? ::neo4j/date-str))
|
|
(spec/def ::name string?)
|
|
(spec/def ::req-name
|
|
(spec/and ::name (complement empty?)))
|
|
(spec/def ::instance_uuid ::neo4j/uuid)
|
|
(spec/def ::attribute_uuid ::neo4j/uuid)
|
|
(spec/def ::now ::neo4j/date-str)
|
|
(spec/def ::uuid ::neo4j/uuid)
|
|
(spec/def ::user_uuid ::neo4j/uuid)
|
|
(spec/def ::no-whitespace #(not (re-matches #".*\s.*" %)))
|