| Class | Apipie::ParamDescription |
| In: |
lib/apipie/param_description.rb
|
| Parent: | Object |
method parameter description
name - method name (show) desc - description required - boolean if required validator - Validator::BaseValidator subclass
| allow_blank | [R] | |
| allow_nil | [R] | |
| as | [R] | |
| desc | [R] | |
| metadata | [R] | |
| method_description | [R] | |
| name | [R] | |
| options | [R] | |
| parent | [RW] | |
| required | [RW] | |
| show | [R] | |
| validations | [R] | |
| validator | [R] |
merge param descripsiont. Allows defining hash params on more places (e.g. in param_groups). For example:
def_param_group :user do
param :user, Hash do
param :name, String
end
end
param_group :user
param :user, Hash do
param :password, String
end
makes modification that are based on the action that the param is defined for. Typical for required and allow_nil variations in crate/update actions.