diff --git a/hyper-schema.json b/hyper-schema.json index deab4992..4de69496 100644 --- a/hyper-schema.json +++ b/hyper-schema.json @@ -127,11 +127,6 @@ "type": "string" } } - }, - "readOnly": { - "description": "If true, indicates that the value of this property is controlled by the server.", - "type": "boolean", - "default": "false" } }, "links": [ diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index 42d381b7..e5acc338 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -425,23 +425,6 @@ - -
- - 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. - - - For example, this property would be used to mark a server-generated serial - number as read-only. - - - The value of this keyword MUST be a boolean. - The default value is false. - -
diff --git a/jsonschema-validation.xml b/jsonschema-validation.xml index 8c90bdb2..51b47c84 100644 --- a/jsonschema-validation.xml +++ b/jsonschema-validation.xml @@ -740,6 +740,28 @@
+
+ + The value of this keyword MUST be a boolean. + + + If it has a value of boolean true, this keyword indicates that the value of the + instance is managed exclusively by the owning authority, and attempts by an + application to modify the value of this property are expected to be ignored or + rejected by that owning authority. + + + For example, this property would be used to mark a database-generated serial + number as read-only. + + + This keyword can be used to assist in user interface instance generation. + + + Omitting this keyword has the same behavior as a value of false. + +
+
The value of this keyword MUST be an array. diff --git a/schema.json b/schema.json index e5b848e7..80635bbb 100644 --- a/schema.json +++ b/schema.json @@ -60,6 +60,10 @@ "type": "string" }, "default": {}, + "readOnly": { + "type": "boolean", + "default": false + }, "examples": { "type": "array", "items": {}