Closed aew closed 8 years ago
Thanks for the report. Can you please provide the generator invocation you are using? When I attempt to replicate, it works as expected.
Any updates on this? Only think I can think of is that if you were somehow including an earlier version of schema as well as 1.0.4 (via AOT?) you could possibly get this error, since :post
wasn't present in 1.0.0.
Using version 1.0.4, when attempting to generate values from the following conditional schema (
cond-schema
):I received this error:
java.lang.IllegalArgumentException: No matching field found: post for class schema.spec.variant.VariantSpec schema.experimental.generators$eval36960$fn__36961$fn__36962.invoke(generators.clj:42)
It seems to be a field access here:
https://github.com/plumatic/schema/blob/master/src/clj/schema/experimental/generators.clj#L42
Of this field:
https://github.com/plumatic/schema/blob/master/src/cljx/schema/spec/variant.cljx#L41