malli

Pavel Filipenco 2024-10-13T15:05:04.447099Z

I am using :fn schemas and mg/generate throws an error :malli.generator/no-generator. How can this be fixed, how can I add a generator for :fn schemas?

ikitommi 2024-10-13T15:13:05.366399Z

This is described in the README: https://github.com/metosin/malli?tab=readme-ov-file#value-generation

Pavel Filipenco 2024-10-13T15:17:27.093899Z

This is not described in the readme. I added :gen/fmap to the fn schema and it still throws the same error.

Pavel Filipenco 2024-10-13T15:22:47.704069Z

Also, :multi schema generator seems to generate invalid values. edit: solved with a :fmap