dry-rb / dry-schema

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

Run outer schema processor steps before inner ones #361

Closed ojab closed 3 years ago

ojab commented 3 years ago

Extract from https://github.com/dry-rb/dry-schema/pull/353.

Pretty straightforward, just sorting steps by shortest path first on schema creation. We need to compare paths with different roots for this, so allow it.