{ "title" : "Upload Document" , "description" : "Holds the data for multiple dustmap nodes and multiple points in time" , "type" : "object" , "minProperties" : 1 , "patternProperties" : { "^.+$" : { "$ref" : "#/definitions/datasets" } } , "definitions" : { "value_type" : { "title" : "Value Type" , "description" : "Valid types of a measurement" , "type" : "string" , "enum" : [ "temperature" , "humidity" , "particle_concentration" ] }, "value_tuple" : { "title" : "Value Tuple" , "description" : "A measurement described by a value and the value's type and optionally an identifier" , "type" : "object" , "properties" : { "value" : { "type" : [ "number" , "string" ] , "pattern" : "^[-+]?(?:\\d*\\.)?\\d+(?:[eE][-+]?\\d+)?$" } , "type" : { "$ref" : "#/definitions/value_type" } , "id" : { "type" : "string" } } , "required" : [ "type", "value" ] , "additionalProperties" : false } , "dataset" : { "title" : "Node Dataset" , "description" : "Holds the data for a specific dustmap node and a specific point in time" , "type" : "array" , "minItems" : 1 , "items" : { "$ref" : "#/definitions/value_tuple" } } , "datasets" : { "title" : "Node Datasets" , "description" : "Holds multiple datasets for a specific dustmap node" , "type" : "object" , "additionalProperties" : false , "minProperties" : 1 , "patternProperties" : { "^\\d{10}$" : { "$ref" : "#/definitions/dataset" } } } } }