-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Using the import tool, on lint mode, on a schema MCF with duplicate (same dcid) Nodes gives a misleading error message:
Found a missing or empty property value :: property: 'dcid', node: 'dcid:Annual_ExpectedLoss_NaturalHazardImpact', type: 'StatisticalVariable'
The duplicate node example:
Node: dcid:Annual_ExpectedLoss_NaturalHazardImpact
dcid: Annual_ExpectedLoss_NaturalHazardImpact
typeOf: dcs:StatisticalVariable
statType: measuredValue
populationType: dcs:NaturalHazardImpact
measuredProperty: dcs:expectedLoss
measurementQualifier: Annual
Node: dcid:Annual_ExpectedLoss_NaturalHazardImpact
typeOf: dcs:StatisticalVariable
statType: measuredValue
populationType: dcs:NaturalHazardImpact
measuredProperty: dcs:expectedLoss
measurementQualifier: Annual
Resources
See commit 5dc7078 on https://github.com/enjoythecode/import/tree/catfood
fema_nri_schema.mcf contains 21 nodes duplicated
report.json contains the dc-import generated error message.
Steps to Reproduce
git clone https://github.com/enjoythecode/import.git
cd import
git pull origin catfood
git checkout a4fa6d4
cd bin
chmod +x s/genmcf.sh
s/genmcf.sh
git clone https://github.com/enjoythecode/import.git
cd import
git pull origin catfood
git checkout 545a1bb194c5cc85df55905690aa2348b8bb051c
cd bin
chmod +x s/lint.sh
s/lint.sh
cat dc_generated/report.json