dry-rb / dry-schema

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

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

Open kennethteh90 opened 1 month ago

kennethteh90 commented 1 month 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?!)