|
1 | 1 | { |
2 | 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
3 | | - "$id": "https://raw.githubusercontent.com/CondeNast/tny-archive-schemas/v1.0.0/article.schema.json", |
| 3 | + "$id": "https://raw.githubusercontent.com/CondeNast/tny-archive-schemas/v1.1.0/article.schema.json", |
4 | 4 | "title": "Article", |
5 | 5 | "description": "A New Yorker article. This schema also validates ads which appeared in The New Yorker.", |
6 | 6 | "type": "object", |
|
75 | 75 | "pattern": "^(19|20)\\d\\d_[01]\\d_[0123]\\d-(CV\\d|\\d{3})-(CV\\d|\\d{3})-ad(-\\d{2})?-image(-\\d{2})?(\\.jpg)?$" |
76 | 76 | }, |
77 | 77 | { |
78 | | - "pattern": "^(19|20)\\d\\d_[01]\\d_[0123]\\d-(CV\\d|\\d{3})-(CV\\d|\\d{3})-[a-z_]+(-\\d{2})?$" |
| 78 | + "pattern": "^(19|20)\\d\\d_[01]\\d_[0123]\\d-(CV\\d|\\d{3})-(CV\\d|\\d{3})-[a-z_]+(-\\d{2}|-root)?$" |
79 | 79 | } |
80 | 80 | ], |
81 | 81 | "examples": [ |
|
282 | 282 | "@type": { |
283 | 283 | "const": "PublicationIssue" |
284 | 284 | }, |
| 285 | + "name": { |
| 286 | + "type": "string", |
| 287 | + "description": "The name of the issue, as printed on the cover, near the page numbers or on the table of contents.", |
| 288 | + "examples": [ |
| 289 | + "June 7, 1969", |
| 290 | + "June 27 & July 4, 1994", |
| 291 | + "December 25, 2000 & January 1, 2001", |
| 292 | + "August 19 & 26, 2002" |
| 293 | + ] |
| 294 | + }, |
285 | 295 | "issueNumber": { |
286 | 296 | "type": "integer", |
287 | 297 | "minimum": 1 |
|
431 | 441 | }, |
432 | 442 | { |
433 | 443 | "type": "object", |
434 | | - "description": "Supplemental text at the end of the article, perhaps following a signer. This may be an italicized note, such as a translation credit or additional context like “This is the first part of a two-part Profile.” In the “Goings on About Town” section, this would correspond to italicized details about schedules and locations following an event’s description.", |
| 444 | + "description": "A referenced article (for root articles only).", |
| 445 | + "additionalProperties": false, |
| 446 | + "properties": { |
| 447 | + "@type": { |
| 448 | + "const": ["Article"] |
| 449 | + }, |
| 450 | + "sameAs": { |
| 451 | + "$ref": "#/$defs/archiveId" |
| 452 | + } |
| 453 | + } |
| 454 | + }, |
| 455 | + { |
| 456 | + "type": "object", |
| 457 | + "description": "Supplemental text, often at the start or end of the article, perhaps following a signer. This may be an italicized note, such as a translation credit or additional context like “This is the first part of a two-part Profile.” In the “Goings on About Town” section, this would correspond to italicized details about schedules and locations following an event’s description.", |
435 | 458 | "required": [ |
436 | 459 | "@type", |
437 | 460 | "additionalType", |
|
0 commit comments