Skip to content

Instantly share code, notes, and snippets.

@abuvanth
Last active January 13, 2023 14:22
Show Gist options
  • Save abuvanth/e6b30c870c7757b42ea4f2d2143e1a52 to your computer and use it in GitHub Desktop.
Save abuvanth/e6b30c870c7757b42ea4f2d2143e1a52 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Welcome4",
"definitions": {
"Welcome4": {
"type": "object",
"additionalProperties": false,
"properties": {
"dht": {
"$ref": "#/definitions/Dht"
}
},
"required": [
"dht"
],
"title": "Welcome4"
},
"Dht": {
"type": "object",
"additionalProperties": false,
"properties": {
"data": {
"$ref": "#/definitions/Data"
},
"units": {
"$ref": "#/definitions/Units"
}
},
"required": [
"data",
"units"
],
"title": "Dht"
},
"Data": {
"type": "object",
"additionalProperties": false,
"properties": {
"temperature": {
"type": "number"
},
"humidity": {
"type": "number"
}
},
"required": [
"humidity",
"temperature"
],
"title": "Data"
},
"Units": {
"type": "object",
"additionalProperties": false,
"properties": {
"temperature": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"temperature"
],
"title": "Units"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment