|
1217 | 1217 |
|
1218 | 1218 | <section title='"default"'> |
1219 | 1219 | <t> |
1220 | | - There are no restrictions placed on the value of this keyword. |
| 1220 | + There are no restrictions placed on the value of this keyword. When |
| 1221 | + multiple occurrences of this keyword are applicable to a single |
| 1222 | + sub-instance, implementations SHOULD remove duplicates. |
1221 | 1223 | </t> |
1222 | 1224 | <t> |
1223 | 1225 | This keyword can be used to supply a default JSON value associated with a |
|
1228 | 1230 |
|
1229 | 1231 | <section title='"readOnly"'> |
1230 | 1232 | <t> |
1231 | | - The value of this keyword MUST be a boolean. |
| 1233 | + The value of this keyword MUST be a boolean. When multiple occurrences |
| 1234 | + of this keyword are applicable to a single sub-instance, the resulting |
| 1235 | + value MUST be true if any occurrence specifies a true value, and MUST |
| 1236 | + be false otherwise. |
1232 | 1237 | </t> |
1233 | 1238 | <t> |
1234 | | - If it has a value of boolean true, this keyword indicates that the value of the |
1235 | | - instance is managed exclusively by the owning authority, and attempts by an |
1236 | | - application to modify the value of this property are expected to be ignored or |
1237 | | - rejected by that owning authority. |
| 1239 | + If it has a value of boolean true, this keyword indicates that the value |
| 1240 | + of the instance is managed exclusively by the owning authority, and |
| 1241 | + attempts by an application to modify the value of this property are |
| 1242 | + expected to be ignored or rejected by that owning authority. |
1238 | 1243 | </t> |
1239 | 1244 | <t> |
1240 | 1245 | For example, this property would be used to mark a database-generated serial |
|
1252 | 1257 | <t> |
1253 | 1258 | The value of this keyword MUST be an array. |
1254 | 1259 | There are no restrictions placed on the values within the array. |
| 1260 | + When multiple occurrences of this keyword are applicable to a single |
| 1261 | + sub-instance, implementations MUST provide a flat array of all |
| 1262 | + values rather than an array of arrays. |
1255 | 1263 | </t> |
1256 | 1264 | <t> |
1257 | 1265 | This keyword can be used to provide sample JSON values associated with a |
1258 | 1266 | particular schema, for the purpose of illustrating usage. It is |
1259 | 1267 | RECOMMENDED that these values be valid against the associated schema. |
1260 | 1268 | </t> |
1261 | 1269 | <t> |
1262 | | - Implementations MAY use the value of "default", if present, as |
| 1270 | + Implementations MAY use the value(s) of "default", if present, as |
1263 | 1271 | an additional example. If "examples" is absent, "default" |
1264 | 1272 | MAY still be used in this manner. |
1265 | 1273 | </t> |
1266 | 1274 | </section> |
1267 | | - |
1268 | 1275 | </section> |
1269 | 1276 | </section> |
1270 | 1277 |
|
|
0 commit comments