Skip to content

Bug(BaSyx.Models.Export): Validation error when writing then reading .aas.xml with SubmodelElementList #16

@dbcvc

Description

@dbcvc

When you write an AssetAdministrationShellEnvironment_V3_0 that contains a SubmodelElementList to a .xml file using WriteEnvironment_V3_0, it does not satisfy the xml-schema AAS_V3_0.xsd. This results in the following error when trying to read the file again:

BaSyx.Models.Export.AssetAdministrationShellEnvironment_V3_0[0] Validation error: The element 'submodelElementList' in namespace 'https://admin-shell.io/aas/3/0' has invalid child element 'value' in namespace 'https://admin-shell.io/aas/3/0'. List of possible elements expected: 'displayName, description, semanticId, supplementalSemanticIds, qualifiers, embeddedDataSpecifications, orderRelevant, semanticIdListElement, typeValueListElement' in namespace 'https://admin-shell.io/aas/3/0'.

The problem is that the order enforced by the schema file does not match the order of fields of SubmodelElementList_V3_0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions