summaryrefslogtreecommitdiff
path: root/deps/node/deps/npm/node_modules/json-schema/draft-04/links
blob: 7cf7c92c20965ca15306aa52f9382ee1cdb39303 (plain)
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
{
	"$schema" : "http://json-schema.org/draft-04/hyper-schema#",
	"id" : "http://json-schema.org/draft-04/links#",
	"type" : "object",

	"properties" : {
		"rel" : {
			"type" : "string"
		},

		"href" : {
			"type" : "string"
		},

		"template" : {
			"type" : "string"
		},

		"targetSchema" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"},

		"method" : {
			"type" : "string",
			"default" : "GET"
		},

		"enctype" : {
			"type" : "string"
		},

		"properties" : {
			"type" : "object",
			"additionalProperties" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"}
		}
	},

	"required" : ["rel", "href"],

	"dependencies" : {
		"enctype" : "method"
	}
}