Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Common/Characteristic.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"type": "object",
"required" : ["name","value"],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier of the characteristic"
},
"name": {
"type": "string",
"description": "Name of the characteristic"
Expand All @@ -20,6 +24,12 @@
"value": {
"$ref": "Any.schema.json#/definitions/Any",
"description": "The value of the characteristic"
},
"characteristicRelationship": {
"type":"array",
"items": {
"$ref": "CharacteristicRelationship.schema.json#CharacteristicRelationship"
}
}
},
"allOf": [
Expand Down
27 changes: 27 additions & 0 deletions Common/CharacteristicRelationship.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "CharacteristicRelationship.schema.json",
"title": "CharacteristicRelationship",
"definitions": {
"CharacteristicRelationship": {
"$id": "#CharacteristicRelationship",
"description": "Another Characteristic that is related to the current Characteristic;",
"type": "object",
"properties": {
"id": {
"type":"string",
"description": "Unique identifier of the characteristic"
},
"relationshipType": {
"type": "string",
"description": "The type of relationship"
}
},
"allOf": [
{
"$ref": "Entity.schema.json#Entity"
}
]
}
}
}