diff --git a/hyper-schema.json b/hyper-schema.json index 3279ad9f..a19bb0fe 100644 --- a/hyper-schema.json +++ b/hyper-schema.json @@ -116,6 +116,11 @@ "$ref": "#" } } + }, + "readOnly": { + "description": "If true, indicates that the value of this property is controlled by the server.", + "type": "boolean", + "default": false } }, "links": [ diff --git a/links.json b/links.json index de272cc4..118601a9 100644 --- a/links.json +++ b/links.json @@ -36,6 +36,6 @@ "required" : ["rel", "href"], "dependencies" : { - "enctype" : "method" + "enctype" : ["method"] } -} \ No newline at end of file +} diff --git a/schema.json b/schema.json index 85eb502a..bcbb8474 100644 --- a/schema.json +++ b/schema.json @@ -28,12 +28,10 @@ "type": "object", "properties": { "id": { - "type": "string", - "format": "uri" + "type": "string" }, "$schema": { - "type": "string", - "format": "uri" + "type": "string" }, "title": { "type": "string" @@ -137,6 +135,7 @@ } ] }, + "format": { "type": "string" }, "allOf": { "$ref": "#/definitions/schemaArray" }, "anyOf": { "$ref": "#/definitions/schemaArray" }, "oneOf": { "$ref": "#/definitions/schemaArray" },