Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
132 lines (131 sloc) 3.83 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
},
"description" : {
"type" : "string",
"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
}
}
}
}
}
You can’t perform that action at this time.