These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
Dry::Validation.Formmake it sound like we can't use validations on form params containing File uploads (this is a problem with Hanami which
#to_s's all my file uploads out of existence when checking param validity...). Is this true? I'm still unpicking the code and haven't figured out how it all fits together yet...
#to_ss your file uploads? why would it do that?
required(:file).filledshould be enough, but you could add your own checks
Types::Form::Datewill choke on it
/foo/:idwhere id becomes an int
#to_sfor file data
stringify!could be removed
:idbeing already an int wouldn’t be an issue since schema would handle that