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
Hi, I am getting the error You must provide a leaf generator for schema.spec.leaf.LeafSpec@2bd8c7ed when calling the schema-generators.complete/complete for a given schema, but when I call schema-generators.generators/generate for the same schema it work without need to pass any additional leaf generator.
Looking at the code, I have found the default-leaf-generators (source) that is only called in the generate.
Is there any reason for that?
Could we add those default leaf generators to complete in order to both work with the same types?
The text was updated successfully, but these errors were encountered:
When creating a test DSL with completers, you might want to e.g. always require certain fields to be present. If we automatically supply the leaf generators, you don't have that flexibility. On the other hand, I think it's always easy for you to supply the defaults yourself, or make your own wrapper that supplies the defaults by default.
Hi, I am getting the error
You must provide a leaf generator for schema.spec.leaf.LeafSpec@2bd8c7ed
when calling theschema-generators.complete/complete
for a given schema, but when I callschema-generators.generators/generate
for the same schema it work without need to pass any additional leaf generator.Looking at the code, I have found the
default-leaf-generators
(source) that is only called in thegenerate
.Is there any reason for that?
Could we add those default leaf generators to
complete
in order to both work with the same types?The text was updated successfully, but these errors were encountered: