{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "uuid": {
            "type": "string"
        },
        "number": {
            "type": "string"
        },
        "shortname": {
            "type": "string"
        },
        "longname": {
            "type": "string"
        },
        "km": {
            "type": "number"
        },
        "agency": {
            "type": "string"
        },
        "longitude": {
            "type": "number"
        },
        "latitude": {
            "type": "number"
        },
        "water": {
            "type": "object",
            "properties": {
                "shortname": {
                    "type": "string"
                },
                "longname": {
                    "type": "string"
                }
            }
        },
        "timeseries": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "shortname": {
                        "type": "string"
                    },
                    "longname": {
                        "type": "string"
                    },
                    "unit": {
                        "type": "string"
                    },
                    "equidistance": {
                        "type": "integer"
                    },
                    "currentMeasurement": {
                        "type": "object",
                        "properties": {
                            "timestamp": {
                                "type": "string"
                            },
                            "value": {
                                "type": "number"
                            },
                            "trend": {
                                "type": "integer"
                            },
                            "stateMnwMhw": {
                                "type": "string"
                            },
                            "stateNswHsw": {
                                "type": "string"
                            }
                        }
                    },
                    "gaugeZero": {
                        "type": "object",
                        "properties": {
                            "unit": {
                                "type": "string"
                            },
                            "value": {
                                "type": "integer"
                            },
                            "validFrom": {
                                "type": "string"
                            }
                        }
                    },
                    "characteristicValues": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "shortname": {
                                    "type": "string"
                                },
                                "longname": {
                                    "type": "string"
                                },
                                "unit": {
                                    "type": "string"
                                },
                                "value": {
                                    "type": "integer"
                                },
                                "validFrom": {
                                    "type": "string"
                                },
                                "timespanStart": {
                                    "type": "string"
                                },
                                "timespanEnd": {
                                    "type": "string"
                                },
                                "occurrences": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}