Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save nickl-/4365949 to your computer and use it in GitHub Desktop.
hypermedia-links-schema
{
"$schema": "http://json-schema.org/draft-03/hyper-schema#",
"id": "http://json-schema.org/draft-03/links#",
"type": "object",
"properties": {
"href": {
"type": "string",
"required": true
},
"rel": {
"type": "string",
"required": true
},
"targetSchema": { "$ref": "http://json-schema.org/draft-03/hyper-schema#" },
"method": {
"type": "string",
"default": "GET"
},
"enctype": {
"type": "string"
},
"schema": {
"type": "object",
"additionalProperties": { "$ref": "http://json-schema.org/draft-03/hyper-schema#" }
}
},
"dependencies": {
"enctype": "method"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment