Maru. Params. Types. String
(maru_params v0.2.15)
Copy Markdown
Buildin Type: String
Parser Arguments
* `:style` - string style
* `:upcase`
* `:downcase`
* `:camelcase`
* `:snakecase`
* `:trim` - to_trimValidator Arguments
* `:regex` - validate input by regex
* `:values` - validate input is one item of given valuesExamples
optional :id, String, regex: ~r/{7,10}/ optional :fruit, String, values: ["apple", "peach"] optional :code, String, style: :upcase