So what we are seeing is that we put in a lot of upfront work with Decodable
, and got some impressive results out it because we can effortlessly generate a random value from pretty much any data type we define. However, the system is very rigid and will mostly create invalid values for your domain, like email addresses and positive user ids.
Maybe there’s another way. We saw last time that our Gen
type was able to do things that the Swift 4.2 randomness APIs were not capable of, so maybe it can help us out again?