lib/apia/definitions/argument.rb
# Validate a given value through all validations and
# return an array of all errors
#
# @param value [Object]
# @return [Array]
Validate a given value through all validations and
return an array of all errors
Validate a given value through all validations and return an array of all errors
def validate_value(value)
        @validations.each_with_object([]) do |validation, errors|
          errors << validation[:name] unless validation[:block].call(value)
        end
      end
def validate_value ( value ) @validations . each_with_object ( [ ] ) do | validation , errors | errors << validation [ :name ] unless validation [ :block ] . call ( value ) end end
Validate a given value through all validations and
return an array of all errors
Validate a given value through all validations and return an array of all errors
None
Array
value
<not_specific>
<not_specific>
None