Method: GoodData::Model::AnchorBlueprintField#validate

Defined in:
lib/gooddata/models/blueprint/anchor_field.rb

#validateArray<Hash>

Validates the field for presence of mandatory fields

Returns:

  • (Array<Hash>)

    Returns list of errors as hashes



57
58
59
60
61
62
# File 'lib/gooddata/models/blueprint/anchor_field.rb', line 57

def validate
  errors = super
  errors.concat(validate_presence_of(:id).map do |e|
    { type: :error, message: "Field \"#{e}\" is not defined or empty for anchor \"#{id}\"" }
  end)
end