Skip to content

Support Relationships created by Central #91

@rido-min

Description

@rido-min

Repro Steps

Create a Device Template in Central
Select Edge Device
Export the device template
Extract each of the interfaces to a different file

Expected: No errors since those are valid DTDL files
Observed:

The DTDL extension complains about the Relationship:

image

Although the files passes the .NET parser validations

Exported file
[
  {
    "@id": "dtmi:p8pl7l5ly:capabilitymodel:mybouqmfzo;1",
    "@type": "Interface",
    "contents": [
      {
        "@id": "dtmi:p8pl7l5ly:capabilitymodel:mybouqmfzo:SamplePnPModule;1",
        "@type": [
          "Relationship",
          "EdgeModule"
        ],
        "displayName": {
          "en": "SamplePnPModule"
        },
        "maxMultiplicity": 1,
        "name": "SamplePnPModule",
        "target": [
          "dtmi:p8pl7l5ly:SamplePnPModule;1"
        ]
      }
    ],
    "displayName": {
      "en": "Azure IoT Edge Capability Model mybouqmfzo"
    },
    "@context": [
      "dtmi:iotcentral:context;2",
      "dtmi:dtdl:context;2"
    ]
  },
  {
    "@id": "dtmi:p8pl7l5ly:SamplePnPModule;1",
    "@type": "Interface",
    "displayName": {
      "en": "Module SamplePnPModule"
    },
    "@context": [
      "dtmi:iotcentral:context;2",
      "dtmi:dtdl:context;2"
    ]
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions