From 942ba5c5e77616f6ed3bf74e23d59fe9574616b5 Mon Sep 17 00:00:00 2001 From: Austin Wright Date: Wed, 30 Nov 2016 07:37:54 -0700 Subject: [PATCH] Hyper-schema: Add "deprecated" keyword --- hyper-schema.json | 6 ++++++ jsonschema-hyperschema.xml | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/hyper-schema.json b/hyper-schema.json index ec9c1441..4e557f92 100644 --- a/hyper-schema.json +++ b/hyper-schema.json @@ -54,6 +54,12 @@ "type": "array", "items": {"$ref": "#/definitions/linkDescription"} }, + "deprecated": { + "type": "boolean" + }, + "readOnly": { + "type": "boolean" + }, "media": { "type": "object", "properties": { diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index e5280850..033c99bf 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -334,6 +334,16 @@ +
+ + If it has a value of boolean true, this keyword indicates that the value of the instance is deprecated, and intended for reverse compatability or internal use only, and may become missing in the future. + + + The value of this keyword MUST be a boolean. + The default value is false. + +
+
If it has a value of boolean true, this keyword indicates that the value of the instance is managed exclusively by the server or the owning authority, and attempts by a user agent to modify the value of this property are expected to be ignored or rejected by a server.