You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A geneator for (both ...) schemas seems to be missing:
Execution error (IllegalArgumentException) at schema-generators.generators/eval11171$fn$G (generators.cljc:56).
No implementation of method: :composite-generator of protocol: #'schema-generators.generators/CompositeGenerator found for class: schema.core.Both
Schema library version "1.1.12" was used.
The text was updated successfully, but these errors were encountered:
both is thorny because you can't reasonably make a generator that's guaranteed to succeed. One approach is to generate something from the first generator, use gen/such-that to filter based on matching the second generator, and risk throwing an exception if it can't succeed.
That puts the burden on the user to understand that implementation and possibly have to fall back to custom generators.
I'm not saying it shouldn't be done, it's just a less obvious design choice than most other schema->gen implementations.
A geneator for
(both ...)
schemas seems to be missing:Schema library version "1.1.12" was used.
The text was updated successfully, but these errors were encountered: