Closed ikitommi closed 2 years ago
Currently, on can't add custom keys to machine, the following fails on extra key:
(def machine (fsm/machine {:id :lights :initial :red :context nil :states {:green {:description "Green Light" ;; fail :on {:timer {:target :yellow}}} :yellow {:on {:timer :red}} :red {:on {:timer :green}}} :on {:power-outage :red}}))
Proposal: either make the schemas always open for extension or option to make them.
Make sense! I just removed the {closed: true} options for all map schemas.
{closed: true}
A new version 0.1.5 is released with this change.
awesome, thanks!
Currently, on can't add custom keys to machine, the following fails on extra key:
Proposal: either make the schemas always open for extension or option to make them.