Closed vladfaust closed 6 years ago
def foo_valid?(foo) some_code?(foo) end params do param :id, Int32, ->{ p > 0 } param :foo, String?, validate: foo_valid? end