Skip to content
Find file
6f83646
@ironwallaby @kingsfleet
128 lines (127 sloc) 3.69 KB
{
"type" : "object",
"$schema" : "http://json-schema.org/draft-03/schema",
"id" : "forecast",
"properties" : {
"latitude" : {
"type" : "number",
"required" : true
},
"longitude" : {
"type" : "number",
"required" : true
},
"offset" : {
"type" : "number",
"required" : false
},
"timezone" : {
"type" : "string",
"required" : true
},
"currently" : {
"$ref" : "datapoint.json",
"required" : false
},
"minutely" : {
"$ref" : "datablock.json",
"required" : false
},
"hourly" : {
"$ref" : "datablock.json",
"required" : false
},
"daily" : {
"$ref" : "datablock.json",
"required" : false
},
"alerts" : {
"type" : "array",
"required" : "false",
"items" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"required" : true
},
"expires" : {
"type" : "number",
"required" : true
},
"uri" : {
"type" : "string",
"format" : "uri",
"required" : true
}
}
}
},
"flags" : {
"type" : "object",
"required" : false,
"properties" : {
"darksky-unavailable" : {
"type" : "string",
"required" : false
},
"darksky-stations" : {
"type" : "array",
"required" : false,
"items" : {
"type" : "string",
"required" : false
}
},
"datapoint-stations" : {
"type" : "array",
"required" : false,
"items" : {
"type" : "string",
"required" : false
}
},
"isd-stations" : {
"type" : "array",
"required" : false,
"items" : {
"type" : "string",
"required" : false
}
},
"lamp-stations" : {
"type" : "array",
"required" : false,
"items" : {
"type" : "string",
"required" : false
}
},
"metar-stations" : {
"type" : "array",
"required" : false,
"items" : {
"type" : "string",
"required" : false
}
},
"sources" : {
"type" : "array",
"required" : false,
"items" : {
"type" : "string",
"required" : false
}
},
"metno-license" : {
"type" : "string",
"required" : false
},
"units" : {
"type" : "string",
"required" : false
}
}
}
}
}
Something went wrong with that request. Please try again.