You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing two files, an interface with a component referencing the v1 schema and the v2 interface versioned with additional properties, the models should be imported. I would expect the folder structure to be this after running the command:
The dmr-client will see duplicate properties and fail to import the new interface.
Error:
[Error]: dtmi:TestModel:UnchangedProperty;1 has more than one definition. Remove all but one JSON object containing '@id' property with value dtmi:TestModel:UnchangedProperty;1, or change the '@id' values so there are no duplicates.
Steps to Reproduce
Run the command from the attached repository: tests.zip
versionedRepo/testdevice.json and versionedRepo/testcomponentmodel.json have the same @id what is not permitted in the DMR, each interface must be unique.
if you want to version TestModel, it should have a new version.
Expected Behavior
When importing two files, an interface with a component referencing the v1 schema and the v2 interface versioned with additional properties, the models should be imported. I would expect the folder structure to be this after running the command:
Actual Behavior
The dmr-client will see duplicate properties and fail to import the new interface.
Error:
Steps to Reproduce
Run the command from the attached repository: tests.zip
dmr-client import --directory ./versionedRepo --search-pattern "*.json" --local-repo ./localRepo
The text was updated successfully, but these errors were encountered: