dry-rb / dry-schema

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

Fix loose JSON schemas for nested hashes #401

Closed tomdalling closed 2 years ago

tomdalling commented 2 years ago

The :loose option to the #json_schema method was not being applied to subschemas. It was reverting to it's default of false. This passes the option down such that all subschemas are affected by the option.