|
10 | 10 | "time": { |
11 | 11 | "description": "Time the event was generated", |
12 | 12 | "type": "string", |
13 | | - "format": "date-time", |
14 | | - "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" |
| 13 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
15 | 14 | }, |
16 | 15 | "type": { |
17 | 16 | "type": "string", |
|
105 | 104 | "type": "object", |
106 | 105 | "properties": { |
107 | 106 | "owner": { |
108 | | - "description": "The client or user that owns the template", |
| 107 | + "description": "The client that owns the template", |
109 | 108 | "type": "string" |
110 | 109 | }, |
111 | 110 | "id": { |
112 | 111 | "description": "Unique identifier for the template", |
113 | 112 | "type": "string", |
114 | | - "format": "uuid", |
115 | | - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$" |
| 113 | + "pattern": "^[\\dA-Fa-f]{8}(?:-[\\dA-Fa-f]{4}){3}-[\\dA-Fa-f]{12}$" |
116 | 114 | }, |
117 | 115 | "clientId": { |
118 | 116 | "description": "The client that owns the template", |
|
122 | 120 | "createdAt": { |
123 | 121 | "description": "Timestamp for when the template was initially created", |
124 | 122 | "type": "string", |
125 | | - "maxLength": 1000 |
| 123 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
126 | 124 | }, |
127 | 125 | "createdBy": { |
128 | 126 | "description": "Unique identifier for the user that initially created the template", |
|
153 | 151 | "updatedAt": { |
154 | 152 | "description": "Timestamp for when the template was most recently updated", |
155 | 153 | "type": "string", |
156 | | - "maxLength": 1000 |
| 154 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
157 | 155 | }, |
158 | 156 | "updatedBy": { |
159 | 157 | "description": "Unique identifier for the user that most recently updated the template", |
|
192 | 190 | "type": "object", |
193 | 191 | "properties": { |
194 | 192 | "owner": { |
195 | | - "description": "The client or user that owns the template", |
| 193 | + "description": "The client that owns the template", |
196 | 194 | "type": "string" |
197 | 195 | }, |
198 | 196 | "id": { |
199 | 197 | "description": "Unique identifier for the template", |
200 | 198 | "type": "string", |
201 | | - "format": "uuid", |
202 | | - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$" |
| 199 | + "pattern": "^[\\dA-Fa-f]{8}(?:-[\\dA-Fa-f]{4}){3}-[\\dA-Fa-f]{12}$" |
203 | 200 | }, |
204 | 201 | "clientId": { |
205 | 202 | "description": "The client that owns the template", |
|
209 | 206 | "createdAt": { |
210 | 207 | "description": "Timestamp for when the template was initially created", |
211 | 208 | "type": "string", |
212 | | - "maxLength": 1000 |
| 209 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
213 | 210 | }, |
214 | 211 | "createdBy": { |
215 | 212 | "description": "Unique identifier for the user that initially created the template", |
|
240 | 237 | "updatedAt": { |
241 | 238 | "description": "Timestamp for when the template was most recently updated", |
242 | 239 | "type": "string", |
243 | | - "maxLength": 1000 |
| 240 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
244 | 241 | }, |
245 | 242 | "updatedBy": { |
246 | 243 | "description": "Unique identifier for the user that most recently updated the template", |
|
273 | 270 | "type": "object", |
274 | 271 | "properties": { |
275 | 272 | "owner": { |
276 | | - "description": "The client or user that owns the template", |
| 273 | + "description": "The client that owns the template", |
277 | 274 | "type": "string" |
278 | 275 | }, |
279 | 276 | "id": { |
280 | 277 | "description": "Unique identifier for the template", |
281 | 278 | "type": "string", |
282 | | - "format": "uuid", |
283 | | - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$" |
| 279 | + "pattern": "^[\\dA-Fa-f]{8}(?:-[\\dA-Fa-f]{4}){3}-[\\dA-Fa-f]{12}$" |
284 | 280 | }, |
285 | 281 | "clientId": { |
286 | 282 | "description": "The client that owns the template", |
|
290 | 286 | "createdAt": { |
291 | 287 | "description": "Timestamp for when the template was initially created", |
292 | 288 | "type": "string", |
293 | | - "maxLength": 1000 |
| 289 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
294 | 290 | }, |
295 | 291 | "createdBy": { |
296 | 292 | "description": "Unique identifier for the user that initially created the template", |
|
321 | 317 | "updatedAt": { |
322 | 318 | "description": "Timestamp for when the template was most recently updated", |
323 | 319 | "type": "string", |
324 | | - "maxLength": 1000 |
| 320 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
325 | 321 | }, |
326 | 322 | "updatedBy": { |
327 | 323 | "description": "Unique identifier for the user that most recently updated the template", |
|
358 | 354 | "const": "LETTER" |
359 | 355 | }, |
360 | 356 | "language": { |
361 | | - "description": "Language the letter template is written in", |
| 357 | + "description": "ISO 639 language code for the language the letter template is written in", |
362 | 358 | "type": "string", |
363 | 359 | "enum": [ |
364 | 360 | "ar", |
|
393 | 389 | ] |
394 | 390 | }, |
395 | 391 | "letterType": { |
396 | | - "description": "Letter type", |
| 392 | + "description": "Letter type - q4:British Sign Language, x1:Large Print, x0:Standard", |
397 | 393 | "type": "string", |
398 | 394 | "enum": [ |
399 | 395 | "q4", |
|
428 | 424 | "type": "object", |
429 | 425 | "properties": { |
430 | 426 | "owner": { |
431 | | - "description": "The client or user that owns the template", |
| 427 | + "description": "The client that owns the template", |
432 | 428 | "type": "string" |
433 | 429 | }, |
434 | 430 | "id": { |
435 | 431 | "description": "Unique identifier for the template", |
436 | 432 | "type": "string", |
437 | | - "format": "uuid", |
438 | | - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$" |
| 433 | + "pattern": "^[\\dA-Fa-f]{8}(?:-[\\dA-Fa-f]{4}){3}-[\\dA-Fa-f]{12}$" |
439 | 434 | }, |
440 | 435 | "clientId": { |
441 | 436 | "description": "The client that owns the template", |
|
445 | 440 | "createdAt": { |
446 | 441 | "description": "Timestamp for when the template was initially created", |
447 | 442 | "type": "string", |
448 | | - "maxLength": 1000 |
| 443 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
449 | 444 | }, |
450 | 445 | "createdBy": { |
451 | 446 | "description": "Unique identifier for the user that initially created the template", |
|
476 | 471 | "updatedAt": { |
477 | 472 | "description": "Timestamp for when the template was most recently updated", |
478 | 473 | "type": "string", |
479 | | - "maxLength": 1000 |
| 474 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$" |
480 | 475 | }, |
481 | 476 | "updatedBy": { |
482 | 477 | "description": "Unique identifier for the user that most recently updated the template", |
|
0 commit comments