When I diverted the sinatra app I made a while ago, an error occurred in validation.
It seems that the version of dry-validation has changed and the format has changed.
post '/hoge' do
validates {
required(:fuga).filled(:string).format?(DATE_FORMAT)
}
...
200
end
post '/hoge' do
validates{
params{
required(:fuga).filled(:string, format?: DATE_FORMAT)
}
}
...
200
end
Recommended Posts