clara

http://www.clara-rules.org/
Busy escaping the comfort zone 2020-04-01T11:32:54.001Z

Hey Clara team I'm trying to require clara and I'm getting an error

namespace 'clara.rules.schema' not found
Any idea what I'm missing? (I am able to require 'http://calra.ru

Busy escaping the comfort zone 2020-04-01T11:45:36.001500Z

Ok seems like I had a conflicting [prismatic/schema "1.1.6"] version in my classpath all good 🙂

ethanc 2020-04-01T14:15:41.003700Z

I wonder if it would make sense to rip that dependency out of clara. I know it adds a bit of clarity to the underlying structure of the Sessions and whatnot, but it is another dependency we are forcing on consumers. @mikerod do you have any thoughts here?

2020-04-01T14:33:22.004Z

@ethanc replace with spec or just nothing?

2020-04-01T14:33:38.004700Z

We maybe could get the schema ns usage to be optional (and use it in tests too)

ethanc 2020-04-01T14:34:18.005500Z

Spec would probably be the ideal, but i’m not sure what all is going to have to change to uplift clojure/clojurescript versios

2020-04-01T14:46:16.006Z

spec could probably be added without much difficulty on the versioning front, but actually making the spec would be more time consuming

2020-04-01T14:46:30.006400Z

Perhaps we can just get the schema to be an option dependency we only check/bring in during the :dev profile?

ethanc 2020-04-01T14:49:41.007Z

I’m not completely sure how we could do that.

2020-04-01T15:24:45.007600Z

probably would have to shim some schema fn’s/macros

2020-04-01T15:24:54.007900Z

and have them at compile time decide if the dep is there or not - if not fall back

2020-04-01T15:25:14.008300Z

probably isn’t easy if using harder macro features like schema’s defn or defrecord

ethanc 2020-04-01T15:43:00.008800Z

which clara does, at least for the defrecord.

2020-04-01T16:08:13.009100Z

yeah, so it’s likely difficult 😛

ethanc 2020-04-01T17:05:51.010100Z

I really wouldn’t want to be in the business of trying to parse schema’s forms and convert them back into clojure’s forms

2020-04-01T17:28:07.010500Z

No. I wouldn’t want that either