ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

dumi_doc-master/schema/resource/news.schema.json

Committer:
TMBOY
Date:
2017-07-18
Revision:
44:c1d8923072ba

File content as of revision 44:c1d8923072ba:

{
    "type":"object",
    "id":"https://xiaodu.baidu.com/schema/news.schema.json",
    "properties":{
        "type":{
            "type":"string",
            "enum":["news"]
        },
        "data":{
            "type":"object",
            "properties":{
                "list":{
                    "type":"array",
                    "items":{
                        "type":"object",
                        "properties":{
                            "id":{"type":"string"},
                            "title":{"type":"string"},
                            "summary":{"type":"string"},
                            "content":{"type":"string"},
                            "url":{"type":"string"},
                            "image":{"type":"string"},
                            "thumb":{"type":"string"},
                            "pubtime":{"type":"string","pattern":"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"}
                        }
                    }
                }
            }
        }
    }
}