Have you tried Sinatra Param by Mattt
Thompson? It's implementation is slightly
different, but the result is similar to what
strong params does for Rails.
As per documentation example:
# GET /search?q=example
# GET /search?q=example&categories=news
get '/search' do
param :q, String, required: true
param :categories, Array
param :sort, String, default: "title"
param :order, String, in: ["ASC",
"DESC"], transform: :upcase, default: "ASC"
param :price, String, format: