Can generate but can't complete?

17 views
Skip to first unread message

Andrea Richiardi

unread,
Jun 3, 2016, 2:41:49 PM6/3/16
to Plumbing and Graph: the Clojure utility belt
Hello again :)

Other question for you guys, I found out a problem with my schema:

(def Workflow
  {:id PosInt
   :status WorkflowStatus
   :latitude Double
   :longitude Double
   :last-modified s/Inst})

Basically (sgen/generate hs/Workflow) works fine but (scompl/complete hs/Workflow {:longitude 0.1}) does not.

What am I doing wrong here?

Thanks a lot :)

Jason Wolfe

unread,
Jun 3, 2016, 3:07:16 PM6/3/16
to Plumbing and Graph: the Clojure utility belt
I think you're passing the arguments backwards, try (scompl/complete {:longitude 0.1} Workflow).

Best,
Jason 

Andrea Richiardi

unread,
Jun 3, 2016, 3:10:11 PM6/3/16
to Plumbing and Graph: the Clojure utility belt
Ops so sorry about this lol! I had the generate syntax wired up in my brain :)

Thanks Jason for answering.
Reply all
Reply to author
Forward
0 new messages