沈斌
2018-07-10 f00a2b2acc1480c21234001c78da43eec48683d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
    "extends":"http://json-schema.org/hyper-schema",
    "description":"A schema for schema interface definitions that describe programmatic class structures using JSON schema syntax",
    "properties":{
        "methods":{
            "type":"object",
            "description":"This defines the set of methods available to the class instances",
            "additionalProperties":{
                "type":"object",
                "description":"The definition of the method",
                "properties":{
                    "parameters":{
                        "type":"array",
                        "description":"The set of parameters that should be passed to the method when it is called",
                        "items":{"$ref":"#"},
                        "required": true
                    },
                    "returns":{"$ref":"#"}
                }
            }
        }    
    }
}