Last active
January 13, 2023 14:22
-
-
Save abuvanth/e6b30c870c7757b42ea4f2d2143e1a52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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