Skip to content

Instantly share code, notes, and snippets.

@chuwy
Created November 19, 2015 09:54
Show Gist options
  • Save chuwy/0bf55fd9d9d290ea278d to your computer and use it in GitHub Desktop.
Save chuwy/0bf55fd9d9d290ea278d to your computer and use it in GitHub Desktop.
{
"type" : "object",
"properties" : {
"message" : {
"type" : "string"
},
"city_id" : {
"type" : "integer",
"maximum" : 2147483647,
"minimum" : 0
},
"calctime" : {
"type" : "number",
"minimum" : 0
},
"cnt" : {
"type" : "integer",
"maximum" : 32767,
"minimum" : 0
},
"list" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"dt" : {
"type" : "integer",
"maximum" : 2147483647,
"minimum" : 0
},
"main" : {
"type" : "object",
"properties" : {
"temp_min" : {
"type" : "number",
"minimum" : 0
},
"pressure" : {
"type" : "number",
"minimum" : 0
},
"sea_level" : {
"type" : "number",
"minimum" : 0
},
"grnd_level" : {
"type" : "number",
"minimum" : 0
},
"humidity" : {
"type" : "integer",
"maximum" : 32767,
"minimum" : 0
},
"temp" : {
"type" : "number",
"minimum" : 0
},
"temp_max" : {
"type" : "number",
"minimum" : 0
}
},
"additionalProperties" : false
},
"rain" : {
"type" : "object",
"properties" : {
"3h" : {
"type" : "number",
"minimum" : 0
},
"1h" : {
"type" : "number",
"minimum" : 0
}
},
"additionalProperties" : false
},
"wind" : {
"type" : "object",
"properties" : {
"gust" : {
"type" : "number",
"minimum" : 0
},
"var_end" : {
"type" : "integer",
"maximum" : 32767,
"minimum" : 0,
"enum" : [ 100, 290, 140, 220, 180, 120, 110, 310, 270, 280, 320, 350, 70, 150, 230, 210, 330, 240, 300, 50, 40, 260, 190, 250, 170 ]
},
"deg" : {
"type" : "number",
"minimum" : 0
},
"var_beg" : {
"type" : "integer",
"maximum" : 32767,
"minimum" : 0,
"enum" : [ 10, 210, 340, 160, 100, 40, 30, 230, 190, 200, 290, 90, 140, 150, 120, 240, 300, 130, 180, 170, 110, 80, 310, 250 ]
},
"speed" : {
"type" : "number",
"minimum" : 0
}
},
"additionalProperties" : false
},
"clouds" : {
"type" : "object",
"properties" : {
"all" : {
"type" : "integer",
"maximum" : 32767,
"minimum" : 0,
"enum" : [ 92, 36, 56, 0, 20, 1, 75, 90, 64, 44, 88, 80, 40, 68, 76, 32, 48, 24, 100, 12, 8, 5 ]
}
},
"additionalProperties" : false
},
"weather" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "integer",
"maximum" : 32767,
"minimum" : 0,
"enum" : [ 520, 800, 701, 802, 500, 804, 803, 741, 310, 801, 503, 301, 502, 300, 211, 501, 302, 311, 721, 521, 202, 200, 711, 620, 600 ]
},
"main" : {
"type" : "string",
"minLength" : 3,
"maxLength" : 12,
"enum" : [ "Rain", "Clear", "Mist", "Clouds", "Fog", "Drizzle", "Thunderstorm", "Haze", "Smoke", "Snow" ]
},
"description" : {
"type" : "string",
"minLength" : 3,
"maxLength" : 28,
"enum" : [ "light intensity shower rain", "Sky is Clear", "mist", "scattered clouds", "light rain", "overcast clouds", "broken clouds", "fog", "light intensity drizzle rain", "few clouds", "very heavy rain", "sky is clear", "drizzle", "heavy intensity rain", "light intensity drizzle", "proximity thunderstorm", "moderate rain", "heavy intensity drizzle", "rain and drizzle", "haze", "proximity shower rain", "thunderstorm", "thunderstorm with heavy rain", "thunderstorm with light rain", "smoke", "light shower snow", "light snow" ]
},
"icon" : {
"type" : "string",
"minLength" : 3,
"maxLength" : 3,
"enum" : [ "09n", "01d", "50d", "03d", "10d", "04d", "04n", "50n", "09d", "01n", "03n", "10n", "02d", "02n", "11n", "11d", "13d", "13n" ]
}
},
"additionalProperties" : false
}
}
},
"additionalProperties" : false
}
},
"cod" : {
"type" : "string",
"minLength" : 3,
"maxLength" : 3,
"enum" : [ "200" ]
}
},
"additionalProperties" : false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment