diff --git a/jsonschema-validation.xml b/jsonschema-validation.xml index 0b038903..7232d274 100644 --- a/jsonschema-validation.xml +++ b/jsonschema-validation.xml @@ -1241,28 +1241,49 @@ -
+
- The value of this keyword MUST be a boolean. When multiple occurrences - of this keyword are applicable to a single sub-instance, the resulting + The value of these keywords MUST be a boolean. When multiple occurrences + of these keywords are applicable to a single sub-instance, the resulting value MUST be true if any occurrence specifies a true value, and MUST be false otherwise. - If it has a value of boolean true, this keyword indicates that the value + If "readOnly" has a value of boolean true, it 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. + An instance document that is marked as "readOnly for the entire document + MAY be ignored if sent to the owning authority, or MAY result in an + error, at the authority's discretion. - This keyword can be used to assist in user interface instance generation. + If "writeOnly" has a value of boolean true, it indicates that the value + is never present when the instance is retrieved from the owning authority. + It can be present when sent to the owning authority to update or create + the document (or the resource it represents), but it will not be included + in any updated or newly created version of the instance. - Omitting this keyword has the same behavior as a value of false. + An instance document that is marked as "writeOnly" for the entire document + MAY be returned as a blank document of some sort, or MAY produce an error + upon retrieval, or have the retrieval request ignored, at the authority's + discretion. + + + For example, "readOnly" would be used to mark a database-generated serial + number as read-only, while "writeOnly" would be used to mark a password + input field. + + + These keywords can be used to assist in user interface instance generation. + In particular, an application MAY choose to use a widget that hides + input values as they are typed for write-only fields. + + + Omitting these keywords has the same behavior as values of false.
@@ -1390,6 +1411,7 @@ Warn of possibly removing "dependencies" in the future Grouped validation keywords into sub-sections for readability Moved "readOnly" from hyper-schema to validation meta-data + Added "writeOnly" Added string-encoded media section, with former hyper-schema "media" keywords Restored "regex" format (removal was unintentional) Added "date" and "time" formats, and reserved additional RFC 3339 format names