-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathttninjs-schema_1.1.json
845 lines (844 loc) · 38.4 KB
/
ttninjs-schema_1.1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://tt.se/spec/ttninjs/ttninjs-schema_1.1.json#",
"type": "object",
"title": "TT variant of IPTC ninjs - News in JSON - version 1.1",
"description": "A TT news item as JSON object -- Derived from https://www.iptc.org/std/ninjs/ninjs-schema_1.1.json -- (c) Copyright 2015 TT - TT Nyhetsbyrån - tt.se - This document is published under the Creative Commons Attribution 3.0 license, see http://creativecommons.org/licenses/by/3.0/. Updated 20190904 by JL with new things for events and planning.",
"additionalProperties": false,
"required": ["uri"],
"properties": {
"uri": {
"description": "The identifier for this object",
"type": "string",
"format": "uri"
},
"type": {
"description": "The generic news type of this news object. $$TT: TT added 'component' for items with, for example, embed codes for toolbox deliveries. TT also added event for items with data describing a coming event.",
"type": "string",
"enum": [
"text",
"audio",
"video",
"picture",
"graphic",
"composite",
"planning",
"component",
"event"
]
},
"mimetype": {
"description": "A MIME type which applies to this object",
"type": "string"
},
"representationtype": {
"description": "Indicates how complete this representation of a news item is. $$TT: associated is a TT-extension used when the news item appears as an association considered as a link without renditions.",
"type": "string",
"enum": [
"complete",
"incomplete",
"associated"
]
},
"profile": {
"description": "An identifier for the kind of content of this news object. $$TT: Possible values are PUBL, DATA, INFO or RAW. PUBL is a news item that can be published. DATA is data such as tables and figures (that are not meant to be edited). INFO is for information purposes only (not to be published). RAW is raw data, such as unedited videos, that is meant to be further edited before publishing.",
"type": "string",
"enum": [
"PUBL",
"DATA",
"INFO",
"RAW"
]
},
"version": {
"description": "The version of the object which is identified by the uri property",
"type": "string"
},
"versioncreated": {
"description": "The date and time when this version of the object was created",
"type": "string",
"format": "date-time"
},
"versionstored": {
"description": "$$TT: The date and time when this version of the object was persisted. For a photo, versioncreated is when photo was taken, versionstored is when we indexed it to the database.",
"type": "string",
"format": "date-time"
},
"embargoed": {
"description": "The date and time before which all versions of the object are embargoed. If absent, this object is not embargoed.",
"type": "string",
"format": "date-time"
},
"embargoedreason": {
"description": "$$TT: Textual description of why article is embargoed.",
"type": "string"
},
"date": {
"description": "$$TT Used for items that concern a specific date such as events and planning items. Notice that this holds date only, no time. See also datetime.",
"type": "string",
"format": "date"
},
"datetime": {
"description": "$$TT For items that concern a specific date and time. See also date.",
"type": "string",
"format": "date-time"
},
"enddate": {
"description": "$$TT Used for items that concern a specific date such as events and planning items and has a specific enddate. Notice that this holds date only, no time. See also enddatetime.",
"type": "string",
"format": "date"
},
"enddatetime": {
"description": "$$TT For items that concern a specific enddate and time. See also enddate.",
"type": "string",
"format": "date-time"
},
"job": {
"description": "$$TT: Identifier of a grouping job this item belongs to. Typically the id of the job the article belong to, normally something like 327890.",
"type": "string"
},
"pubstatus": {
"description": "The publishing status of the news object, its value is *usable* by default. $$TT: replaced and comissioned added by TT.",
"type": "string",
"enum": [
"usable",
"withheld",
"canceled",
"replaced",
"commissioned"
]
},
"copyrightholder": {
"description": "The person or organisation claiming the intellectual property for the content.",
"type": "string"
},
"copyrightnotice": {
"description": "Any necessary copyright notice for claiming the intellectual property for the content.",
"type": "string"
},
"language": {
"description": "The human language used by the content. The value should follow IETF BCP47",
"type": "string"
},
"week": {
"description": "$$TT: The number of the week the item is planned to be published. Mainly used for feature-articles and ready pages. Also showing the week-number of planning and events.",
"type": "number"
},
"urgency": {
"description": "The editorial urgency of the content from 1 to 9. 1 represents the highest urgency, 9 the lowest. $$TT: 1 is most urgent. 4 is normal. Definition here http://tt.se/spec/prio/1.0",
"type": "number"
},
"webprio": {
"description": "$TT: TT managed editorial sort order. Priority numbers range from 1 (most important) to 3 (least). A 0 indicates that the item needs manual attention before publishning. Definitions and sort logic are defined here http://tt.se/spec/webprio/1.0",
"type": "number"
},
"source": {
"description": "$$TT: String identifier for originating source of content.",
"type": "string"
},
"commissioncode": {
"description": "$$TT: String identifier for who receives commission for this object.",
"type": "string"
},
"description_text": {
"description": "$$TT: Textual description of the item as text.",
"type": "string"
},
"description_usage": {
"description": "$$TT: TT editorial information. Can be anything from planned re-relases of object to restrictions.",
"type": "string"
},
"usageterms": {
"description": "A natural-language statement about the usage terms pertaining to the content. $$TT: Specifically contains image usage restrictions from TT's suppliers.",
"type": "string"
},
"body_text": {
"description": "$$TT: The textual content of the news object as untagged text. Only present if type is PUBL or DATA.",
"type": "string"
},
"body_html5": {
"description": "$$TT: The textual content of the news object as HTML5. Only present if type is PUBL or DATA.",
"type": "string"
},
"body_richhtml5": {
"description": "$$TT: The textual content of the news object as HTML5. Only present if type is PUBL or DATA. See alternative html5 schemas for details. richhtml5 allow more than the older html5 container",
"type": "string"
},
"body_event": {
"description": "$$TT: Object with properties containing data on upcoming events.",
"type": "object",
"additionalProperties": false,
"properties": {
"arena": {
"description": "$$TT: Name of the arena where the event will take place.",
"type": "string"
},
"city": {
"description": "$$TT: Name of the city where the event will take place.",
"type": "string"
},
"address": {
"description": "$$TT: Address to the place where the event will take place.",
"type": "string"
},
"country": {
"description": "$$TT: Three letter code for the country where the event will take place.",
"type": "string"
},
"eventurl": {
"description": "$$TT: URL to a web site with information about the event.",
"type": "string"
},
"eventphone": {
"description": "$$TT: Phone number to call for more information about the event.",
"type": "string"
},
"eventweb": {
"description": "$$TT: Details on following the event online",
"type": "string"
},
"organizer": {
"description": "$$TT: Name of the organizer of the event",
"type": "string"
},
"organizerurl": {
"description": "$$TT: URL to a web page for the organizer",
"type": "string"
},
"organizerphone": {
"description": "$$TT: Phone number to the organizer of the event.",
"type": "string"
},
"organizermail": {
"description": "$$TT: Mail address to the organizer of the event.",
"type": "string"
},
"eventstatus": {
"description": "$$TT: Status code for the event.",
"type": "string"
},
"eventstatus_text": {
"description": "$$TT: Status for the event as a phrase.",
"type": "string"
},
"region": {
"description": "$$TT: For events in Sweden, the code of the region.",
"type": "string"
},
"region_text": {
"description": "$$TT: For events in Sweden, the name of the region.",
"type": "string"
},
"municipality": {
"description": "$$TT: For events in Sweden, the code of the municipality.",
"type": "string"
},
"municipality_text": {
"description": "$$TT: For events in Sweden the name of the municipality.",
"type": "string"
},
"eventtags": {
"description": "$$TT: Tags of the event.",
"type": "string"
},
"eventtype": {
"description": "$$TT: Code for type of event.",
"type": "string"
},
"eventtype_text": {
"description": "$$TT: Type of event as text.",
"type": "string"
},
"note_extra": {
"description": "$$TT: Extra information about the event.",
"type": "string"
},
"note_pm": {
"description": "$$TT: Text intended to be used by TT on planning lists of upcoming events.",
"type": "string"
},
"accreditation": {
"description": "$$TT: Information about how to get accreditation to the event.",
"type": "string"
},
"extraurl": {
"description": "$$TT: If there are more information concerning the event.",
"type": "string"
},
"createddate": {
"description": "$$TT: When the item was created in the TT event database.",
"type": "string",
"format": "date-time"
},
"createdby": {
"description": "$$TT: Initials of the person creating the item in the TT event database.",
"type": "string"
},
"changeddate": {
"description": "$$TT: When the item was last updated in the TT event database.",
"type": "string",
"format": "date-time"
},
"changedby": {
"description": "$$TT: Initials of the person doing the last update to the item.",
"type": "string"
},
"courtcasenumber": {
"description": "$$TT: If the event is a trial this property hold the casenumber.",
"type": "string"
}
}
},
"body_sportsml": {
"description": "$$TT: When the news object is some form of sportsresults, table etc the data is delivered as sportsml. Only present if type is PUBL or DATA. ",
"type": "string"
},
"body_pages": {
"description": "$$TT: One or more objects describing the pages in this delivery.",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[a-zA-Z0-9]+": {
"description": "$$TT: Description of one of the pages in this delivery.",
"type": "object",
"additionalProperties": false,
"properties": {
"innermargin": {
"description": "$$TT: Inner margin for this page. In the unit named in unit.",
"type": "number"
},
"bottommargin": {
"description": "$$TT: Bottom margin for this page. In the unit named in unit.",
"type": "number"
},
"pagina": {
"description": "$$TT: The pagenumber, but not nescessary a number. Can be a letter too.",
"type": "string"
},
"outermargin": {
"description": "$$TT: Outer margin for this page. In the unit named in unit.",
"type": "number"
},
"unit": {
"description": "$$TT: Unit in which the margins are given. Normally MM för millimeter.",
"type": "string"
},
"topmargin": {
"description": "$$TT: Top margin for this page. In the unit named in unit.",
"type": "number"
},
"leftmargin": {
"description": "$$TT: Left margin for this page. In the unit named in unit.",
"type": "number"
},
"rightmargin": {
"description": "$$TT: Right margin for this page. In the unit named in unit.",
"type": "number"
}
}
}
}
},
"commissionedby": {
"description": "$$TT: When pubstatus is 'commissioned', this field tells who commissioned it.",
"type": "array",
"items": {"type": "string"}
},
"charcount": {
"description": "$$TT: The total character count in the article excluding figure captions.",
"type": "number"
},
"originaltransmissionreference": {
"description": "$$TT: Identifier in the originating system/source.",
"type": "string"
},
"signals": {
"description": "$$TT: signals is suggested by AP but not yet included in ninjs. When included it will probably hold a large number of properties.",
"type": "object",
"additionalProperties": false,
"properties": {
"pageproduct": {
"description": "$$TT: What type of page product. An abbreviation like IURDAG.",
"type": "string"
},
"multipagecount": {
"description": "$$TT: Number of pages in this delivery.",
"type": "number"
},
"paginae": {
"description": "$$TT: Array of pagenumbers for the pages in this delivery. (A pagenumber can also be a letter.)",
"type": "array",
"items": {"type": "string"}
},
"pagecode": {
"description": "$$TT: Code for this page product",
"type": "string"
},
"pagevariant": {
"description": "$$TT: Variant of this page product",
"type": "string"
}
}
},
"product": {
"description": "$$TT: TT Product classification codes. See http://tt.se/spec/product/1.0",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the product code. \"Feature Fritid\", \"Nyheter Nöje\", etc",
"type": "string"
},
"scheme": {
"description": "The identifier of a scheme (= controlled vocabulary) which includes a code for the product. http://tt.se/spec/product/1.0",
"type": "string",
"format": "uri"
},
"code": {
"description": "The code for the subject in a scheme (= controlled vocabulary) which is identified by the scheme property. \"FTFRI\", \"TTNJE\"",
"type": "string"
}
}
}
},
"person": {
"description": "An individual human being",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of a person",
"type": "string"
},
"rel": {
"description": "The relationship of the content of the news object to the person",
"type": "string"
},
"scheme": {
"description": "The identifier of a scheme (= controlled vocabulary) which includes a code for the person",
"type": "string",
"format": "uri"
},
"code": {
"description": "The code for the person in a scheme (= controlled vocabulary) which is identified by the scheme property. $$TT: http://tt.se/spec/person/1.0",
"type": "string"
}
}
}
},
"organisation": {
"description": "An administrative and functional structure which may act as as a business, as a political party or not-for-profit party",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the organisation",
"type": "string"
},
"rel": {
"description": "The relationship of the content of the news object to the organisation",
"type": "string"
},
"scheme": {
"description": "The identifier of a scheme (= controlled vocabulary) which includes a code for the organisation",
"type": "string",
"format": "uri"
},
"code": {
"description": "The code for the organisation in a scheme (= controlled vocabulary) which is identified by the scheme property",
"type": "string"
},
"symbols": {
"description": "Symbols used for a finanical instrument linked to the organisation at a specific market place",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"ticker": {
"description": "Ticker symbol used for the financial instrument",
"type": "string"
},
"exchange": {
"description": "Identifier for the marketplace which uses the ticker symbols of the ticker property",
"type": "string"
}
}
}
}
}
}
},
"place": {
"description": "A named location",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the place",
"type": "string"
},
"rel": {
"description": "The relationship of the content of the news object to the place",
"type": "string"
},
"scheme": {
"description": "The identifier of a scheme (= controlled vocabulary) which includes a code for the place. $$TT: http://tt.se/spec/place/1.0",
"type": "string",
"format": "uri"
},
"code": {
"description": "The code for the place in a scheme (= controlled vocabulary) which is identified by the scheme property",
"type": "string"
},
"geometry_geojson": {
"descripion": "$$TT: An optional GeoJSON description of the place.",
"type": "object"
}
}
}
},
"subject": {
"description": "A concept with a relationship to the content. $$TT: Used for content classification in swedish equivalent of IPTC Subject Reference see http://tt.se/spec/subref/1.0/ etc",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the subject",
"type": "string"
},
"rel": {
"description": "The relationship of the content of the news object to the subject",
"type": "string"
},
"scheme": {
"description": "The identifier of a scheme (= controlled vocabulary) which includes a code for the subject. $$TT: http://tt.se/spec/subref/1.0/ http://tt.se/spec/keyword/1.0/ http://tt.se/spec/eventtype/1.0/ ",
"type": "string",
"format": "uri"
},
"code": {
"description": "The code for the subject in a scheme (= controlled vocabulary) which is identified by the scheme property",
"type": "string"
}
}
}
},
"event": {
"description": "Something which happens in a planned or unplanned manner",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the event",
"type": "string"
},
"rel": {
"description": "The relationship of the content of the news object to the event",
"type": "string"
},
"scheme": {
"description": "The identifier of a scheme (= controlled vocabulary) which includes a code for the event",
"type": "string",
"format": "uri"
},
"code": {
"description": "The code for the event in a scheme (= controlled vocabulary) which is identified by the scheme property",
"type": "string"
}
}
}
},
"object": {
"description": "Something material, excluding persons",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the object",
"type": "string"
},
"rel": {
"description": "The relationship of the content of the news object to the object",
"type": "string"
},
"scheme": {
"description": "The identifier of a scheme (= controlled vocabulary) which includes a code for the object",
"type": "string",
"format": "uri"
},
"code": {
"description": "The code for the object in a scheme (= controlled vocabulary) which is identified by the scheme property",
"type": "string"
}
}
}
},
"byline": {
"description": "The name(s) of the creator(s) of the content",
"type": "string"
},
"bylines": {
"description": "Holder of one or more byline objects.",
"type": "array",
"items": {
"type": "object",
"properties": {
"byline": {
"type": "string",
"description": "When the complete byline is sent as one string. Same as byline on root level. Example: Albert Jonsson/SvD/TT"
},
"firstname": {
"type": "string",
"description": "When byline is divided, holds the first name of the person. Example: Albert"
},
"lastname": {
"type": "string",
"description": "When byline is divided, holds the last name of the person. Example: Jonsson"
},
"role": {
"type": "string",
"description": "Role of the person in the byline in relation to this ttninjs item, as string. Example: Photographer"
},
"email": {
"type": "string",
"description": "Email address of the person in this byline. [email protected]"
},
"jobtitle": {
"type": "string",
"description": "Jobtitle can differ from role and is normally more connected to the person and not to the combination person-newsItem. Example: Editor in Chief"
},
"internal": {
"type": "string",
"description": "Whether byline is for internal purposes. Example: true. If not present it means false."
},
"phone": {
"type": "string",
"description": "Phone number of the person in this byline. Example: +46555123456"
},
"initials": {
"type": "string",
"description": "Initials of byline. Mainly used for records marked as internal. Example: mag"
},
"affiliation": {
"type": "string",
"description": "The affiliation of the person. Example: SvD/TT"
}
}
}
},
"headline": {
"description": "A brief and snappy introduction to the content, designed to catch the reader's attention",
"type": "string"
},
"slug": {
"description": "$$TT: Short name given to article while in production.",
"type": "string"
},
"located": {
"description": "The name of the location from which the content originates.",
"type": "string"
},
"renditions": {
"description": "Wrapper for different renditions of non-textual content of the news object",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[a-zA-Z0-9]+": {
"description": "A specific rendition of a non-textual content of the news object.",
"type": "object",
"additionalProperties": false,
"properties": {
"href": {
"description": "The URL for accessing the rendition as a resource",
"type": "string",
"format": "uri"
},
"mimetype": {
"description": "A MIME type which applies to the rendition",
"type": "string"
},
"title": {
"description": "A title for the link to the rendition resource",
"type": "string"
},
"height": {
"description": "For still and moving images: the height of the display area measured in $$TT: unit and defaults to pixels",
"type": "number"
},
"width": {
"description": "For still and moving images: the width of the display area measured in $$TT: unit and defaults to pixels",
"type": "number"
},
"sizeinbytes": {
"description": "The size of the rendition resource in bytes",
"type": "number"
},
"usage": {
"description": "$$TT: One of 'Thumbnail', 'Preview', 'Hires' or 'Hidef'",
"type": "string"
},
"variant": {
"description": "$$TT: One of 'Normal', 'Watermark', 'BlackAndWhite', 'Cropped' or 'Framegrab'",
"type": "string"
},
"unit": {
"description": "$$TT: The unit for width/height. Either px or mm",
"type": "string"
},
"bitrate": {
"description": "$$TT: Video bitrate (if video)",
"type": "string"
},
"duration": {
"description": "$$TT: Video clip curation in seconds.",
"type": "number"
},
"format": {
"description": "$$TT: Suggested by AP, so probably in the official ninjs schema at the next update.",
"type": "string"
},
"printsize": {
"description": "Calculated size of a 300 dpi upsampled image",
"type": "number"
}
}
}
}
},
"replacing": {
"description": "$$TT: Array of identifiers of news objects this object is replacing.",
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"replacedby": {
"description": "$$TT: The identifier of the news object this one is replaced by.",
"type": "string",
"format": "uri"
},
"associations": {
"description": "Content of news objects which are associated with this news object.",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[a-zA-Z0-9]+": {"$ref": "#"}
}
},
"assignments": {
"description": "Individual assignments to produce content connected with one planning item.",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[a-zA-Z0-9]+": {"$ref": "#"}
}
},
"revisions": {
"description": "$$TT: Array of previous versions of this news object. See http://spec.tt.se/revisions.html",
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"required": ["uri"],
"properties": {
"uri": {
"description": "$$TT: The identifier of the previous revision.",
"type": "string",
"format": "uri"
},
"slug": {
"description": "$$TT: Short name given to article while in production.",
"type": "string"
},
"replacing": {
"description": "$$TT: Array of identifiers this revision is replacing.",
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
},
"sector": {
"description": "$$TT: Designator for the 'big 5' ways of grouping content (inrikes, utrikes, etc) and PRM for press releases. Not mandatory, often omitted.",
"type": "string",
"enum": [
"INR",
"UTR",
"EKO",
"KLT",
"SPT",
"PRM"
]
},
"fixture": {
"description": "$$TT: A storytag that this item belong to. A sort of grouping name that can be used over time for a running story. Broader than a slugline, narrower than a media topic.",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the storytag",
"type": "string"
},
"rel": {
"description": "The relationship of the content to the fixture",
"type": "string"
},
"scheme": {
"description": "The identifier of a scheme (= controlled vocabulary) which includes a code for the subject. $$TT: http://tt.se/spec/story/1.1/",
"type": "string",
"format": "uri"
},
"code": {
"description": "The code for the story in a scheme (= controlled vocabulary) which is identified by the scheme property.",
"type": "string"
}
}
}
},
"advice": {
"type": "object",
"description": "$$TT: Object with properties with advice to the receiver",
"additionalProperties": false,
"properties": {
"lifetime": {
"type": "object",
"description": "$$TT: The lifetime is the suggested timeframe when the item is suitable for publication. Either period or enddatetime will be used. ",
"properties": {
"period": {
"type": "string",
"description": "$$TT: Values kan be 'short', which indicates about a day from publication or 'evergreen', which indicates no time-limit."
},
"enddatetime": {
"type": "string",
"description": "$$TT: A specific date+time, in which case the item should not be published again after that time."
}
},
"oneOf": [
{"required": ["period"]},
{"required": ["enddatetime"]}
]
}
}
}
}
}