Skip to content

Commit 52ac344

Browse files
authored
Merge pull request #285 from RealEstateCore/feature/lighting
Added Warranty class and Asset properties
2 parents 352187a + b0c91fe commit 52ac344

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Source/DTDLv2/RealEstateCore/Asset/Asset.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@
2929
"schema": "string",
3030
"writable": true
3131
},
32+
{
33+
"@type": "Property",
34+
"displayName": {
35+
"en": "colour"
36+
},
37+
"name": "colour",
38+
"schema": "string",
39+
"writable": true
40+
},
3241
{
3342
"@type": "Property",
3443
"displayName": {
@@ -283,6 +292,15 @@
283292
"name": "servicedBy",
284293
"target": "dtmi:org:w3id:rec:Agent;1",
285294
"writable": true
295+
},
296+
{
297+
"@type": "Relationship",
298+
"displayName": {
299+
"en": "warranty"
300+
},
301+
"name": "warranty",
302+
"target": "dtmi:org:w3id:rec:Warranty;1",
303+
"writable": true
286304
}
287305
],
288306
"description": {
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"@id": "dtmi:org:w3id:rec:Warranty;1",
3+
"@type": "Interface",
4+
"extends": "dtmi:org:w3id:rec:Event;1",
5+
"description": {
6+
"en": "Represents warranty information for an asset."
7+
},
8+
"displayName": {
9+
"en": "Warranty"
10+
},
11+
"@context": [
12+
"dtmi:dtdl:context;2"
13+
]
14+
}

0 commit comments

Comments
 (0)