{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "sensorsObj",
    "description": "Used to log captured sensors value",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "date": {
            "type": [
                "string",
                "null"
            ],
            "description": "Date of the capture"
        },
        "interval": {
            "type": [
                "number",
                "null"
            ],
            "description": "Capture interval configured for the source, in seconds"
        },
        "sensors": {
            "type": [
                "object",
                "null"
            ],
            "description": "Sensor values captures on a phidget board",
            "patternProperties": {
                "^(.)+": {
                    "type": "object",
                    "properties": {
                        "description": {
                            "type": "string",
                            "description": "Description of the sensor"
                        },
                        "type": {
                            "type": "string",
                            "description": "Sensor Type"
                        },
                        "value": {
                            "type": "number",
                            "description": "Captured value after applying formula"
                        },
                        "valueRaw": {
                            "type": "number",
                            "description": "Captured value before applying formula"
                        }
                    }
                }
            }
        }
    }
}