Skip to content

Instantly share code, notes, and snippets.

@nickl-
Created December 23, 2012 20:40
Show Gist options
  • Select an option

  • Save nickl-/4365944 to your computer and use it in GitHub Desktop.

Select an option

Save nickl-/4365944 to your computer and use it in GitHub Desktop.
hypermedia-schema
{
"$schema": "http://json-schema.org/draft-03/hyper-schema#",
"id": "http://json-schema.org/draft-03/hyper-schema#",
"extends": { "$ref": "http://json-schema.org/draft-03/schema#" },
"properties": {
"links": {
"type": "array",
"items": { "$ref": "http://json-schema.org/draft-03/links#" }
},
"fragmentResolution": {
"type": "string",
"default": "slash-delimited"
},
"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": "slash-delimited"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment