Skip to content

Commit

Permalink
Make the name key for step optional and possibly a keyword
Browse files Browse the repository at this point in the history
Rarely you need the name in a step, at least in our use cases, so it becomes
optional for name. It also can be a keyword, which unifies with the step
function new resolution method.
  • Loading branch information
arichiardi committed Mar 27, 2019
1 parent c246cdd commit 8556dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fonda/step.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
[fonda.meta :as meta]))

;; Common for all steps
(s/def ::name (s/or :k keyword? :s string?))
(s/def ::name string?)
(s/def ::step-common
(s/keys :req-un [::name]))
(s/keys :opt-un [::name]))

;; Tap step
(s/def ::tap (s/or :function fn? :qualified-keyword qualified-keyword?))
Expand Down

0 comments on commit 8556dbf

Please sign in to comment.