hyper-schema
936 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"$schema" : "http://json-schema.org/draft-04/hyper-schema#",
"extends" : {"$ref" : "http://json-schema.org/draft-04/schema#"},
"id" : "http://json-schema.org/draft-04/hyper-schema#",
"properties" : {
"links" : {
"type" : "array",
"items" : {"$ref" : "http://json-schema.org/draft-04/links#"}
},
"fragmentResolution" : {
"type" : "string",
"default" : "json-pointer"
},
"root" : {
"type" : "boolean",
"default" : false
},
"readonly" : {
"type" : "boolean",
"default" : false
},
"contentEncoding" : {
"type" : "string"
},
"pathStart" : {
"type" : "string",
"format" : "uri"
},
"mediaType" : {
"type" : "string",
"format" : "media-type"
}
},
"links" : [
{
"href" : "{id}",
"rel" : "self"
},
{
"href" : "{$ref}",
"rel" : "full"
},
{
"href" : "{$schema}",
"rel" : "describedby"
}
],
"fragmentResolution" : "json-pointer"
}