Skip to content

Feed :set into generator #3

@SevereOverfl0w

Description

@SevereOverfl0w

Hi, just playing around with this and our clojure spec generators.

It would be handy if :set could somehow be fed into the generator so I could do: (s/gen schema {[...] #(gen/return ...)}) for any overrides provided. This would allow generating off a multi-spec without needing a whole separate schema per multi-spec type(s).

e.g. I could do {:count 1 :set {:color :red}} and it would only generate things which must be red.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions