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.ruOk seems like I had a conflicting [prismatic/schema "1.1.6"] version in my classpath all good 🙂
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?
@ethanc replace with spec or just nothing?
We maybe could get the schema ns usage to be optional (and use it in tests too)
Spec would probably be the ideal, but i’m not sure what all is going to have to change to uplift clojure/clojurescript versios
spec could probably be added without much difficulty on the versioning front, but actually making the spec would be more time consuming
Perhaps we can just get the schema to be an option dependency we only check/bring in during the :dev
profile?
I’m not completely sure how we could do that.
probably would have to shim some schema fn’s/macros
and have them at compile time decide if the dep is there or not - if not fall back
probably isn’t easy if using harder macro features like schema’s defn
or defrecord
which clara does, at least for the defrecord.
yeah, so it’s likely difficult 😛
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
No. I wouldn’t want that either