[BUG] CLI SAMM2AASX errors when generating AAS Submodel Template #432
Labels
2023-10-19
aas
acknowledged
Has been viewed by one of the maintainers and is ready for further work, discussion or other steps.
bug
Something isn't working
Describe the bug
I had a look at https://github.com/eclipse-tractusx/sldt-semantic-models/tree/main/io.catenax.batch/2.0.0/gen and wanted to edit it with the aasx package explorer. This is not yet supported.
Note: I do not know which version of the CLI generator is used in Catena-X at this point in time.
I had a look at the generated xml file and found the following issues. For importing into aasx package explorer fixing 2) and 6) is the most important, then 4). Then it can be imported.
or
<aas:id>Optional[urn:samm:io.catenax.batch:2.0.0#Batch]/submodel</aas:id>
etc.
Note: This is sufficient to load it to the aasx package explorer in the first place!
recommendation to not add optional elements if they are not included like
</aas:displayName>
</aas:value>
The data specification for concept descriptions has the value (see Part 3a V3.0)
https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIec61360/3/0
i.e. instead of
we have
<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">
There is a prefix "id_" for each idShort. Remove prefix "id_" from generated idShort names
There is a value "Unknown" for many Properties.
This is not a valid xs:dateTime value. In these cases please just do not add any value. Instead the example value "2022-02-04T14:48:54" should be added usw. or no value at all
Where
CLI
Edit @atextor: XML formatting
The text was updated successfully, but these errors were encountered: