ddialliance / DdiToCogs

Convert DDI 3.x schemas to a Cogs data model
MIT License
0 stars 0 forks source link

Choice cardinality taken from elements - should be choice tag #6

Open spuddybike opened 3 years ago

spuddybike commented 3 years ago

ERROR: Cardinality in choice was taken from elements rather than choice tag RULE: take cardinality from the choice element NOT from sub-elements Item/reference pairs: 108 items changed from maxOccurs unbounded to maxOccurs 1 in CSV (took cardinality from item not choice element) AggregationType: contains a 1..1 choice of AggrationVariable and AggregationVariableReference. Under current cardinality rules should result in a 0..1 AggregationVariableReference.

spuddybike commented 3 years ago

error in ConvertToCogs.cs around line 325

spuddybike commented 3 years ago

@BlinkyBill62 This is a better example where the choice and the element are different https://github.com/ddialliance/ddimodel/tree/master/ItemTypes/VariableGroup

VariableReference and VariableGroupReference should be 0 to n (not 0 to 1)