Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove "method", URI input with "hrefVars" #159

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions hyper-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "http://json-schema.org/draft/hyper-schema#",
"title": "JSON Hyper-Schema",
"allOf": [
{"$ref": "http://json-schema.org/draft-04/schema#"}
{"$ref": "http://json-schema.org/draft/schema#"}
],
"properties": {
"additionalItems": {
Expand Down Expand Up @@ -48,7 +48,8 @@

"base": {
"description": "URI Template resolved as for the 'href' keyword in the Link Description Object. The resulting URI Reference is resolved against the current URI base and sets the new URI base for URI references within the instance.",
"type": "string"
"type": "string",
"format": "uritemplate"
},
"links": {
"type": "array",
Expand Down Expand Up @@ -80,7 +81,13 @@
"properties": {
"href": {
"description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",
"type": "string"
"type": "string",
"format": "uritemplate"
},
"hrefVars": {
"description": "an object where each property is a variable name from \"href\" and the value is a schema describing the data needed to fill in the variable.",
"type": "object",
"additionalProperties": {"$ref": "#"}
},
"rel": {
"description": "relation to the target resource of the link",
Expand All @@ -92,24 +99,20 @@
},
"targetSchema": {
"description": "JSON Schema describing the link target",
"$ref": "#"
"allOf": [{"$ref": "#"}]
},
"mediaType": {
"description": "media type (as defined by RFC 2046) describing the link target",
"type": "string"
},
"method": {
"description": "specifies that the client can construct a templated query (\"get\") or non-idempotent request (\"post\") to a resource.",
"type": "string"
},
"encType": {
"description": "The media type in which to submit data along with the request",
"description": "The media type in which to submit data in the request body",
"type": "string",
"default": "application/json"
},
"schema": {
"description": "Schema describing the data to submit along with the request",
"$ref": "#"
"description": "Schema describing the data to submit in the request body"},
"allOf": [{"$ref": "#"}]
}
}
}
Expand Down
Loading