John Nunemaker @johnnunemaker.com · Mar 12

Dry-rb has some crazy syntax but I love how you can enforce types and provide failures for API endpoints. I use it heavy in flipper cloud's telemetry and starting to in other app API endpoints.

3 likes 1 replies

?

Replies

Janko Marohnić · Mar 12

I'm pretty sure this can be simplified. For instance, why not use Dry::Params::Nil and Dry::Coercible::String instead? Or use `Dry::Params::Integer.optional` to handle nils?