According to meta model, submodel element lists may have a value = null, as value has a cardinality of 0..* (https://industrialdigitaltwin.io/aas-specifications/IDTA-01001/v3.1/spec-metamodel/submodel-elements.html#submodel-element-list-attributes) and the spec additionally forbids e.g. empty json lists. Same holds for XML.
This raises two questions:
- For Submodel Instances: Consider a SMT with an optional SubmodelElementList, that may be empty, i.e., a SubmodelElementList with Qualifier SMT/Cardinality of value ZeroToOne with list elements with Qualifier SMT/Cardinality of value ZeroToMany.
If in my Submodel Instance this list is empty. Should I skip the SubmodelElementList element altogether from my submodel, or should I include it, but set its "value" to null?
- For Submodel Templates: given, that SubmodelElementLists include significant descriptive information about its item type (valueTypeListElement, typeValueListElement, semanticIdListElement), do I always have to specify a list item in my SMT or not? If I not, is there a "default" SMT/Cardinality qualifier supposed for the items?