Closed hwuethrich closed 4 months ago
Hi @hwuethrich I'll merge this as soon as #9 is resolved.
The current generator was clearly wrong until now š
Thank you for notice this bug, opening the PR and your contribution!
@moissela It looks like the other issue was caused by a bug in ash_postgres 2.0.9
Thanks @hwuethrich for your contribution š
I'll release new AshUUID version to hex shortly!
While using
Ash.Generator.seed/1
I got the following error:I noticed that the callback
Ash.Type.generator/1
should actually return an Enumerable instead of a single value:To fix the issue, I renamed the existing
generator/1
togenerate/1
and implemented the generator as expected (usingAsh.Type.UUID
as reference).Heads-up: I also tried to add a test for the generator function by using
Ash.Generator.seed!/1
in the existing tests (which failed, possibly because of an unrelated Ash bug). When I updated all the dependencies, I noticed thatash_postgres
v2.0.10 will break your tests (v2.0.9 is fine):