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