Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmbeddedDataSpecifications inside XML SubmodelElements are not deserialised #208

Open
sebbader-sap opened this issue Nov 21, 2023 · 0 comments
Labels
bug Something isn't working V.1.1.0 Final Release V.1.1.0 incl. additional features

Comments

@sebbader-sap
Copy link
Contributor

E.g. the following example results in File.embeddedDataspecificaitons.dataSpecficationContent = null:

<?xml version='1.0' encoding='UTF-8'?>
<aas:environment xmlns:aas="https://admin-shell.io/aas/3/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://admin-shell.io/aas/3/0 AAS.xsd">
  <aas:submodels>
    <aas:submodel>
      <aas:id>urn:test</aas:id>
      <aas:kind>Instance</aas:kind>
      <aas:submodelElements>
        <aas:file>
          <aas:idShort>myIdShort</aas:idShort>
          <aas:embeddedDataSpecifications>
            <aas:embeddedDataSpecification>
              <aas:dataSpecification>
                <aas:type>ExternalReference</aas:type>
                <aas:keys>
                  <aas:key>
                    <aas:type>GlobalReference</aas:type>
                    <aas:value>https://admin-shell.io/aas/3/0/CustomDataSpecification</aas:value>
                  </aas:key>
                </aas:keys>
              </aas:dataSpecification>
              <aas:dataSpecificationContent>
                <aas:customDataSpecification>
                  <aas:name>
                    <aas:language>en</aas:language>
                    <aas:text>myName</aas:text>
                  </aas:name>
                  <aas:text>myText</aas:text>
                  <aas:pages>42</aas:pages>
                </aas:customDataSpecification>
              </aas:dataSpecificationContent>
            </aas:embeddedDataSpecification>
            <aas:embeddedDataSpecification>
              <aas:dataSpecification>
                <aas:type>ExternalReference</aas:type>
                <aas:keys>
                  <aas:key>
                    <aas:type>GlobalReference</aas:type>
                    <aas:value>https://admin-shell.io/aas/3/0/DataSpecificationIec61360</aas:value>
                  </aas:key>
                </aas:keys>
              </aas:dataSpecification>
              <aas:dataSpecificationContent>
                <aas:dataSpecificationIec61360>
                  <aas:dataType>BLOB</aas:dataType>
                  <aas:definition>
                    <aas:langStringDefinitionTypeIec61360>
                      <aas:language>en</aas:language>
                      <aas:text>myDefinition</aas:text>
                    </aas:langStringDefinitionTypeIec61360>
                  </aas:definition>
                </aas:dataSpecificationIec61360>
              </aas:dataSpecificationContent>
            </aas:embeddedDataSpecification>
          </aas:embeddedDataSpecifications>
          <aas:value>FileValue</aas:value>
        </aas:file>
      </aas:submodelElements>
    </aas:submodel>
  </aas:submodels>
</aas:environment>
@sebbader-sap sebbader-sap added the bug Something isn't working label Nov 21, 2023
@twebermartins twebermartins moved this to 📋 Backlog in Eclipse AAS4J Dev Nov 21, 2023
@twebermartins twebermartins added the V.1.1.0 Final Release V.1.1.0 incl. additional features label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working V.1.1.0 Final Release V.1.1.0 incl. additional features
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants