schema

ag 2021-11-19T02:02:14.001200Z

what's the right way to generate from schema with a pred? i.e., how do I:

(s/defschema User
  {:auth (s/pred map?)})

(g/generate User)
This throws "You must provide a leaf generator"

ag 2021-11-19T02:19:13.001400Z

It looks like I have to change the schema to be like:

(s/defschema User
  {:auth (s/constrained {s/Any s/Any} map?)})

(g/generate User)
That's annoying

ag 2021-11-19T02:22:05.001800Z

Oh well, this shit not working either:

(s/defschema User
  {:get-config (s/=> s/Any)})

(g/generate User)