From b0c91fe8b7815b18c12c24dc144f19da690664cf Mon Sep 17 00:00:00 2001 From: Peter Hartlev Date: Thu, 5 Feb 2026 15:28:39 +0100 Subject: [PATCH] Added Warranty class and Asset properties --- Source/DTDLv2/RealEstateCore/Asset/Asset.json | 18 ++++++++++++++++++ .../DTDLv2/RealEstateCore/Event/Warranty.json | 14 ++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 Source/DTDLv2/RealEstateCore/Event/Warranty.json diff --git a/Source/DTDLv2/RealEstateCore/Asset/Asset.json b/Source/DTDLv2/RealEstateCore/Asset/Asset.json index 5dc6bea78..c690145f2 100644 --- a/Source/DTDLv2/RealEstateCore/Asset/Asset.json +++ b/Source/DTDLv2/RealEstateCore/Asset/Asset.json @@ -29,6 +29,15 @@ "schema": "string", "writable": true }, + { + "@type": "Property", + "displayName": { + "en": "colour" + }, + "name": "colour", + "schema": "string", + "writable": true + }, { "@type": "Property", "displayName": { @@ -283,6 +292,15 @@ "name": "servicedBy", "target": "dtmi:org:w3id:rec:Agent;1", "writable": true + }, + { + "@type": "Relationship", + "displayName": { + "en": "warranty" + }, + "name": "warranty", + "target": "dtmi:org:w3id:rec:Warranty;1", + "writable": true } ], "description": { diff --git a/Source/DTDLv2/RealEstateCore/Event/Warranty.json b/Source/DTDLv2/RealEstateCore/Event/Warranty.json new file mode 100644 index 000000000..b18d20d5d --- /dev/null +++ b/Source/DTDLv2/RealEstateCore/Event/Warranty.json @@ -0,0 +1,14 @@ +{ + "@id": "dtmi:org:w3id:rec:Warranty;1", + "@type": "Interface", + "extends": "dtmi:org:w3id:rec:Event;1", + "description": { + "en": "Represents warranty information for an asset." + }, + "displayName": { + "en": "Warranty" + }, + "@context": [ + "dtmi:dtdl:context;2" + ] +}