Method: GoodData::Model::AnchorBlueprintField#validate
- Defined in:
- lib/gooddata/models/blueprint/anchor_field.rb
#validate ⇒ Array<Hash>
Validates the field for presence of mandatory fields
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 |