ex
Fork of mbed-os-example-mbed5-blinky by
Diff: dumi_doc-master/schema/resource/weather.schema.json
- Revision:
- 44:c1d8923072ba
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dumi_doc-master/schema/resource/weather.schema.json Tue Jul 18 16:27:22 2017 +0800
@@ -0,0 +1,41 @@
+{
+ "type":"object",
+ "id":"https://xiaodu.baidu.com/schema/weather.schema.json",
+ "properties":{
+ "type":{
+ "type":"string",
+ "enum":["weather"]
+ },
+ "data":{
+ "type":"object",
+ "properties":{
+ "city":{"type":"string"},
+ "current_temp":{"type":"string"},
+ "pm25":{"type":"string"},
+ "temp":{"type":"string"},
+ "time":{"type":"string"},
+ "weather":{"type":"string"},
+ "weather_all":{"type":"string"},
+ "wind":{"type":"string"},
+ "weather_info":{
+ "type":"array",
+ "items":{
+ "type":"object",
+ "properties":{
+ "current_temp":{"type":"string"} ,
+ "icon":{"type":"string"},
+ "pm25":{"type":"string"},
+ "pm_level":{"type":"string"},
+ "temp":{"type":"string"},
+ "time":{"type":"string"},
+ "weather":{"type":"string"},
+ "wind":{"type":"string"}
+ }
+ }
+ }
+
+ }
+ }
+
+ }
+}
