{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.peri.com/schemas/rich-results/press.schema.json",
  "title": "NewsArticle rich-results contract",
  "description": "Structure guaranteed for the schema.org NewsArticle node.",
  "type": "object",
  "properties": {
    "@type": { "const": "NewsArticle" },
    "@id": { "type": "string", "minLength": 1, "pattern": "#newsarticle$" },
    "mainEntityOfPage": {
      "type": "object",
      "properties": { "@id": { "type": "string", "minLength": 1 } },
      "required": ["@id"],
      "additionalProperties": false
    },
    "headline": { "type": "string", "minLength": 1 },
    "image": { "type": "string", "minLength": 1 },
    "datePublished": { "type": "string" },
    "dateModified": { "type": "string" },
    "publisher": {
      "type": "object",
      "properties": { "@id": { "type": "string", "minLength": 1 } },
      "required": ["@id"],
      "additionalProperties": false
    },
    "description": { "type": "string" }
  },
  "required": ["@type", "@id", "mainEntityOfPage", "headline", "datePublished", "dateModified", "publisher", "description"],
  "additionalProperties": false
}
