lib/apia/field_set.rb
# Validate this field set and add errors as appropriate
#
# @param errors [Apia::ManifestErrors]
# @param object [Object]
# @return [void]
Validate this field set and add errors as appropriate
Validate this field set and add errors as appropriate
def validate(errors, object)
      each_value do |field|
        unless field.type.usable_for_field?
          errors.add object, 'InvalidFieldType', "Type for field #{field.name} must be a scalar, enum or object"
        end
      end
    end
def validate ( errors , object ) each_value do | field | unless field . type . usable_for_field? errors . add object , 'InvalidFieldType' , "Type for field #{field.name} must be a scalar, enum or object" end end end
Validate this field set and add errors as appropriate
Validate this field set and add errors as appropriate
None
void
errors
<not_specific>
object
<not_specific>
<not_specific>
None