{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PlantillaSensorPoint Schema",
    "type": "object",
    "required": [
        "Sensor"
    ],
    "properties": {
        "Sensor": {
            "type": "string",
            "$ref": "#/datos"
        }
    },
    "additionalProperties": false,
    "datos": {
        "required": [
            "timestamp",
            "assetId",
            "measure",
            "geometry"
        ],
        "properties": {
            "timestamp": {
                "type": "object",
                "required": [
                    "$date"
                ],
                "properties": {
                    "$date": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "additionalProperties": false
            },
            "assetId": {
                "type": "string"
            },
            "measure": {
                "type": "number"
            },
            "sensorMeasure": {
                "type": "number"
            },
            "correctedMeasure": {
                "type": "number"
            },
            "geometry": {
                "type": "object",
                "required": [
                    "coordinates",
                    "type"
                ],
                "properties": {
                    "coordinates": {
                        "type": "array",
                        "items": [
                            {
                                "type": "number",
                                "maximum": 90,
                                "minimum": -90
                            },
                            {
                                "type": "number",
                                "maximum": 180,
                                "minimum": -180
                            }
                        ],
                        "minItems": 2,
                        "maxItems": 2
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "Point"
                        ]
                    }
                },
                "additionalProperties": false
            },
            "groupId": {
                "type": "string"
            }
        },
        "additionalProperties": false
    }
}