| 1 | { |
| 2 | "$schema" : "http://json-schema.org/draft-03/hyper-schema#", |
| 3 | "id" : "http://json-schema.org/draft-03/links#", |
| 4 | "type" : "object", |
| 5 | |
| 6 | "properties" : { |
| 7 | "href" : { |
| 8 | "type" : "string", |
| 9 | "required" : true, |
| 10 | "format" : "link-description-object-template" |
| 11 | }, |
| 12 | |
| 13 | "rel" : { |
| 14 | "type" : "string", |
| 15 | "required" : true |
| 16 | }, |
| 17 | |
| 18 | "targetSchema" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"}, |
| 19 | |
| 20 | "method" : { |
| 21 | "type" : "string", |
| 22 | "default" : "GET" |
| 23 | }, |
| 24 | |
| 25 | "enctype" : { |
| 26 | "type" : "string", |
| 27 | "requires" : "method" |
| 28 | }, |
| 29 | |
| 30 | "properties" : { |
| 31 | "type" : "object", |
| 32 | "additionalProperties" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"} |
| 33 | } |
| 34 | } |
| 35 | } |