use spec/or instead of some-fn

integration-tests
Josha von Gizycki 5 years ago
parent e45df3ee84
commit 4692b49d2e

@ -7,7 +7,11 @@
(spec/def ::created-at ::neo4j/date-str)
(spec/def ::updated-at ::neo4j/date-str)
(spec/def ::name (spec/and (complement empty?) string?))
(spec/def ::value (some-fn string? boolean? nil? number?))
(spec/def ::value
(spec/or :string string?
:bool boolean?
:nil nil?
:number number?))
(spec/def ::instance_uuid ::neo4j/uuid)
(spec/def ::attribute_uuid ::neo4j/uuid)

Loading…
Cancel
Save