dry-rb / dry-schema

Coercion and validation for data structures
https://dry-rb.org/gems/dry-schema
MIT License
424 stars 110 forks source link

Update nested-data.html.md: Add the use case of an optional array of hashes #480

Open kennethteh90 opened 2 months ago

kennethteh90 commented 2 months ago

Today I found this use case where our partner was sending us information either as nil or as an array of hashes. I couldn't find any readily available documentation on it, so I decided to make this PR. Let me know if this is helpful (or if it is even correct?!)