For keys of a single value something like
required(:user).value(type?: User) works great, but what if
users is an array? I’ve tried
required(:users).each(type?: User) and it’s equivalent block syntax to try and mimic the pattern on the docs (
required(:ids).each(:int?)) but that results in:
NoMethodError: undefined method 'map' for nil:NilClass at the contract call site.
I’m sure I’m missing something obvious but I can’t seem to figure it out.