admin-shell-io / submodel-templates

Submodel Templates for AAS
Creative Commons Attribution 4.0 International
36 stars 14 forks source link

SMT `Asset Interfaces Description`: wrong `typeValueListElement` in `SubmodelElementList` #62

Open zrgt opened 2 months ago

zrgt commented 2 months ago

SubmodelElementList "security" in the template violates the Constraint 108: "Constraint AASd-108: All first level child elements in a SubmodelElementList shall have the same submodel element type as specified in SubmodelElementList/typeValueListElement."

SubmodelElementList "security" has SubmodelElement as typeValueListElement, but it has a referenceElement item inside.

                            <submodelElementList>
                              <idShort>security</idShort>
                              <semanticId>
                                <type>ExternalReference</type>
                                <keys>
                                  <key>
                                    <type>GlobalReference</type>
                                    <value>https://www.w3.org/2019/wot/td#hasSecurityConfiguration</value>
                                  </key>
                                </keys>
                              </semanticId>
                              <qualifiers>
                                <qualifier>
                                  <type>Cardinality</type>
                                  <valueType>xs:string</valueType>
                                  <value>One</value>
                                </qualifier>
                              </qualifiers>
                              <typeValueListElement>SubmodelElement</typeValueListElement>
                              <value>
                                <referenceElement>
                                  <value>
                                    <type>ModelReference</type>
                                    <keys>
                                      <key>
                                        <type>Submodel</type>
                                        <value>https://example.com/ids/sm/4333_9041_7022_4184</value>
                                      </key>
                                      <key>
                                        <type>SubmodelElementCollection</type>
                                        <value>Interface</value>
                                      </key>
                                      <key>
                                        <type>SubmodelElementCollection</type>
                                        <value>EndpointMetadata</value>
                                      </key>
                                      <key>
                                        <type>SubmodelElementCollection</type>
                                        <value>securityDefinitions</value>
                                      </key>
                                      <key>
                                        <type>SubmodelElementCollection</type>
                                        <value>basic_sc</value>
                                      </key>
                                    </keys>
                                  </value>
                                </referenceElement>
                              </value>
                            </submodelElementList>
Rudra-sandeep commented 1 month ago

@sebastiankb could you please Investigate this issue?