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