|
1180 | 1180 |
|
1181 | 1181 | <section title='"default"'>
|
1182 | 1182 | <t>
|
1183 |
| - There are no restrictions placed on the value of this keyword. |
| 1183 | + There are no restrictions placed on the value of this keyword. When |
| 1184 | + multiple occurrences of this keyword are applicable to a single |
| 1185 | + sub-instance, implementations SHOULD remove duplicates. |
1184 | 1186 | </t>
|
1185 | 1187 | <t>
|
1186 | 1188 | This keyword can be used to supply a default JSON value associated with a
|
|
1191 | 1193 |
|
1192 | 1194 | <section title='"readOnly"'>
|
1193 | 1195 | <t>
|
1194 |
| - The value of this keyword MUST be a boolean. |
| 1196 | + The value of this keyword MUST be a boolean. When multiple occurrences |
| 1197 | + of this keyword are applicable to a single sub-instance, the resulting |
| 1198 | + value MUST be true if any occurrence specifies a true value, and MUST |
| 1199 | + be false otherwise. |
1195 | 1200 | </t>
|
1196 | 1201 | <t>
|
1197 |
| - If it has a value of boolean true, this keyword indicates that the value of the |
1198 |
| - instance is managed exclusively by the owning authority, and attempts by an |
1199 |
| - application to modify the value of this property are expected to be ignored or |
1200 |
| - rejected by that owning authority. |
| 1202 | + If it has a value of boolean true, this keyword indicates that the value |
| 1203 | + of the instance is managed exclusively by the owning authority, and |
| 1204 | + attempts by an application to modify the value of this property are |
| 1205 | + expected to be ignored or rejected by that owning authority. |
1201 | 1206 | </t>
|
1202 | 1207 | <t>
|
1203 | 1208 | For example, this property would be used to mark a database-generated serial
|
|
1215 | 1220 | <t>
|
1216 | 1221 | The value of this keyword MUST be an array.
|
1217 | 1222 | There are no restrictions placed on the values within the array.
|
| 1223 | + When multiple occurrences of this keyword are applicable to a single |
| 1224 | + sub-instance, implementations MUST provide a flat array of all |
| 1225 | + values rather than an array of arrays. |
1218 | 1226 | </t>
|
1219 | 1227 | <t>
|
1220 | 1228 | This keyword can be used to provide sample JSON values associated with a
|
1221 | 1229 | particular schema, for the purpose of illustrating usage. It is
|
1222 | 1230 | RECOMMENDED that these values be valid against the associated schema.
|
1223 | 1231 | </t>
|
1224 | 1232 | <t>
|
1225 |
| - Implementations MAY use the value of "default", if present, as |
| 1233 | + Implementations MAY use the value(s) of "default", if present, as |
1226 | 1234 | an additional example. If "examples" is absent, "default"
|
1227 | 1235 | MAY still be used in this manner.
|
1228 | 1236 | </t>
|
1229 | 1237 | </section>
|
1230 |
| - |
1231 | 1238 | </section>
|
1232 | 1239 | </section>
|
1233 | 1240 |
|
|
0 commit comments