class ArchivesSpaceSubTypeAttribute

Public Class Methods

validate(current_schema, data, fragments, validator, options = {}) click to toggle source
# File lib/aspace_client/archivesspace_json_schema.rb, line 123
def self.validate(current_schema, data, fragments, validator, options = {})
  if data.is_a?(Hash) && !data.has_key?('ref')
    message = "ERROR: The property '#{build_fragment(fragments)}' did not contain a required property of 'ref'"
    validation_error(message, fragments, current_schema, self, options[:record_errors])
  end
end