Skip to content

Commit

Permalink
Fix data quality report type
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaspin committed May 8, 2024
1 parent 46259dd commit 1121986
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def self.unpack(xDataQual, hMetadata, hDataQuality, hResponseObj)
else
complete = xComplete.text
report = intMetadataClass.newDataQualityReport
report[:type] = 'Omission'
report[:type] = 'CompletenessOmission'
descriptiveResult = intMetadataClass.newDescriptiveResult
descriptiveResult[:statement] = complete
report[:descriptiveResult] << descriptiveResult
Expand Down
2 changes: 1 addition & 1 deletion lib/adiwg/mdtranslator/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
module ADIWG
module Mdtranslator
# current mdtranslator version
VERSION = "2.19.0-beta.14"
VERSION = "2.19.0-beta.15"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def writeXML(intObj)

# data quality 2.3 (complete) - completion report (not implemented) (required)
completeness_report = hDataQuality[:report].find do |report|
report[:type] == 'Omission' &&
report[:type] == 'CompletenessOmission' &&
!report.dig(:descriptiveResult, 0, :statement).nil?
end

Expand Down

0 comments on commit 1121986

Please sign in to comment.