NeTEx icon indicating copy to clipboard operation
NeTEx copied to clipboard

Describe a structured way to handle a strictContainmentAggregationStructure

Open skinkie opened this issue 1 year ago • 4 comments

First appearing recently in #588

Going through NeTEx the strictContainmentAggregationStructure is handled differently and certainly not consistently.

I think we want to assure:

  1. there is at minimum a single element in this containment structure, otherwise it must be invalid.
  2. I think this can be assured with a choice minOccurs=1 (the default) also on its sub elements.

skinkie avatar Dec 13 '23 10:12 skinkie

Have an in depth discussion with the group if we should restrict (certain) containment structures to a single type.

https://github.com/NeTEx-CEN/NeTEx/pull/588/files#r1425169764

For example: valididityConditions: [AvailabilityConditionRef] XOR [AvailabilityCondition] calls: [DatedCall] XOR [Call]

skinkie avatar Dec 13 '23 10:12 skinkie

There are some further check that could be made for consistence and correctness

  1. check that strictContainmentAggregationStructureis used where it should be (and not onetoManyRelationshipStructure)

  2. VersionedChild should generally be contained within a strictContainmentAggregationStructure

nick-knowles avatar Dec 21 '23 13:12 nick-knowles

@skinkie do we do this in 2.0 or 2.1? May it affect "the interface".. Probably yes...

ue71603 avatar Apr 19 '24 09:04 ue71603

2.0, and see what breaks.

skinkie avatar Apr 19 '24 09:04 skinkie