Module: WeakSwaggerParameters::Definitions::LeafDefinition
- Defined in:
- lib/weak_swagger_parameters/definitions/leaf_definition.rb
Instance Method Summary collapse
Instance Method Details
#apply_validations(parent_node) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/weak_swagger_parameters/definitions/leaf_definition.rb', line 6 def apply_validations(parent_node) type = @options[:type] name = @options[:name] = WeakSwaggerParameters::Services::WeakParametersOptionsAdapter.adapt(@options) parent_node.instance_eval { send type, name, } end |