Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
djs0109 committed Oct 17, 2023
0 parents commit b3bb340
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Sensor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.3",
"$id": "https://TODO/Sensor.json",
"description": "This entity captures the static properties of common iot sensor",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Device"
]
},
"id": {
"type": "string"
},
"documentation": {
"type": "string",
"format": "uri",
"description": "A link to documentation."
},
"modelName": {
"type": "string",
"description": "Sensor's model name."
},
"manufacturer": {
"type": "string",
"description": "Sensor's manufacturer name."
}
},
"required": [
"id",
"type"
]
}
31 changes: 31 additions & 0 deletions TemperatureSensor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.3",
"$id": "http://TODO/TemperatureSensor.json",
"description": "This entity captures the static properties of common iot sensor",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Sensor"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"TemperatureSensor"
]
},
"temperature": {
"type": "number"
}
},
"required": [
"temperature"
]
}
],
"definitions": {
"Sensor": "https://ToDO/Sensor.json"
}
}

0 comments on commit b3bb340

Please sign in to comment.