Schema for two-dimensional array of hashes

Hello!

I’m trying to validate this structure:

photos: [
  [ { image_url: 'url' }, { image_url: 'url' } ],
  [ { image_url: 'url' }, { image_url: 'url' } ]
]

For dry-validation 0.13 I used this schema:

required(:photos).each do
  each do
    schema do
      optional(:metadata).maybe(:hash?)
      required(:image_url).filled(:str?)
    end
  end
end

But in version 1.3 it doesn’t work and I couldn’t find a working solution.
So what is the right solution for this case? Thanks!

Oops. This is a bug. Looks like key map is incorrect in such case. Could you report an issue about it please?