We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m/from-ast
I'm having issues for BiggerThan4 and BiggerThan5 types below when trying to use m/from-ast.
BiggerThan4
BiggerThan5
(def BiggerThan3 (m/schema (m/-simple-schema {:type :my/bigger-than-3 :pred #(> % 3)}))) (def BiggerThan4 (m/schema (m/-simple-schema {:type :my-bigger-than-4 :pred #(> % 4)}))) (def BiggerThan5 (m/schema (m/-simple-schema {:type 'my/bigger-than-5 :pred #(> % 5)}))) (def options {:registry (malli.registry/composite-registry (m/-registry) {:my/bigger-than-3 BiggerThan3 :my-bigger-than-4 BiggerThan4 'my/bigger-than-5 BiggerThan5})}) ;; This works fine. (-> (m/ast :my/bigger-than-3 options) (m/from-ast options)) #_(-> (m/ast :my-bigger-than-4 options) (m/from-ast options)) #_(-> (m/ast 'my/bigger-than-5 options) (m/from-ast options))
They error with
1. Unhandled java.lang.AbstractMethodError malli/core/AST._from_ast(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; core.cljc: 2182 malli.core$from_ast/invokeStatic core.cljc: 2171 malli.core$from_ast/invoke REPL: 721 worker.invoice.sqs-test/eval42056 REPL: 720 worker.invoice.sqs-test/eval42056 Compiler.java: 7181 clojure.lang.Compiler/eval Compiler.java: 7136 clojure.lang.Compiler/eval core.clj: 3202 clojure.core/eval core.clj: 3198 clojure.core/eval interruptible_eval.clj: 87 nrepl.middleware.interruptible-eval/evaluate/fn/fn AFn.java: 152 clojure.lang.AFn/applyToHelper AFn.java: 144 clojure.lang.AFn/applyTo core.clj: 667 clojure.core/apply core.clj: 1977 clojure.core/with-bindings* core.clj: 1977 clojure.core/with-bindings* RestFn.java: 425 clojure.lang.RestFn/invoke interruptible_eval.clj: 87 nrepl.middleware.interruptible-eval/evaluate/fn main.clj: 437 clojure.main/repl/read-eval-print/fn main.clj: 437 clojure.main/repl/read-eval-print main.clj: 458 clojure.main/repl/fn main.clj: 458 clojure.main/repl main.clj: 368 clojure.main/repl RestFn.java: 1523 clojure.lang.RestFn/invoke interruptible_eval.clj: 84 nrepl.middleware.interruptible-eval/evaluate interruptible_eval.clj: 56 nrepl.middleware.interruptible-eval/evaluate interruptible_eval.clj: 152 nrepl.middleware.interruptible-eval/interruptible-eval/fn/fn AFn.java: 22 clojure.lang.AFn/run session.clj: 218 nrepl.middleware.session/session-exec/main-loop/fn session.clj: 217 nrepl.middleware.session/session-exec/main-loop AFn.java: 22 clojure.lang.AFn/run Thread.java: 823 java.lang.Thread/run
Let me know if this is intentional and we should avoid using other than a namespaced keywords in our registries o/
The text was updated successfully, but these errors were encountered:
Convert schemas from symbol to namespaced keywords (see metosin/malli…
4e6bf11
…#626)
ccdbd14
Merge pull request #627 from metosin/issue-626
a7d3b6a
fix #626
Not intentional, there was a bug in m/from-ast, fixed now.
Sorry, something went wrong.
Thanks o/
No branches or pull requests
I'm having issues for
BiggerThan4
andBiggerThan5
types below when trying to usem/from-ast
.They error with
Let me know if this is intentional and we should avoid using other than a namespaced keywords in our registries o/
The text was updated successfully, but these errors were encountered: