Skip to content

[BUG] Submodel Reference not correct #28

@BirgitBoss

Description

@BirgitBoss

To Reproduce
Steps to reproduce the behavior:

  1. download https://github.com/admin-shell-io/submodel-templates/blob/main/published/Carbon%20Footprint/0/9/IDTA%202023-0-9%20_Template_CarbonFootprint.aasx
  2. import to explorer
  3. create new AAS and add a reference to the existing Submodel CarbonFootprint
  4. save as "xml"

The new reference looks like this:

      <submodels>
        <reference>
          <type>ExternalReference</type>
          <keys>
            <key>
              <type>Submodel</type>
              <value>https://admin-shell.io/idta/CarbonFootprint/CarbonFootprint/0/9</value>
            </key>
          </keys>
        </reference>
      </submodels>

but should look like this (ModelReference instead of ExternalReference):

      <submodels>
        <reference>
          <type>ModelReference</type>
          <keys>
            <key>
              <type>Submodel</type>
              <value>https://admin-shell.io/idta/CarbonFootprint/CarbonFootprint/0/9</value>
            </key>
          </keys>
        </reference>
      </submodels>

Version used: v2024-01-15, Build date: Mon 01/15/2024

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions