Skip to content

Commit

Permalink
Loosening up constraints on patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula Gearon committed Mar 11, 2021
1 parent 15b3f7e commit 0cb2c84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject org.clojars.quoll/zuko "0.4.4"
(defproject org.clojars.quoll/zuko "0.4.5"
:description "Threatgrid library for common graph database functionality"
:url "https://github.com/threatgrid/zuko"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
Expand Down
5 changes: 2 additions & 3 deletions src/zuko/schema.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
(:require #?(:clj [schema.core :as s]
:cljs [schema.core :as s :include-macros true])))

;; single element in a rule
(def EntityPropertyElt
(s/cond-pre s/Keyword s/Symbol s/Str #?(:clj Long :cljs s/Num)))
;; single element in a rule. These have extended to be very flexible.
(def EntityPropertyElt s/Any)

;; simple pattern containing a single element. e.g. [?v]
(def EntityPattern [(s/one s/Symbol "entity")])
Expand Down

0 comments on commit 0cb2c84

Please sign in to comment.