{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.peri.com/schemas/rich-results/organization.schema.json",
  "title": "Organization rich-results contract",
  "description": "Structure guaranteed for the schema.org Organization node.",
  "type": "object",
  "properties": {
    "@type": { "const": "Organization" },
    "@id": { "type": "string", "minLength": 1, "pattern": "#organization$" },
    "name": { "type": "string", "minLength": 1 },
    "url": { "type": "string", "minLength": 1 },
    "email": { "type": "string", "minLength": 1 },
    "logo": {
      "type": "object",
      "properties": {
        "@type": { "const": "ImageObject" },
        "url": { "type": "string", "minLength": 1 }
      },
      "required": ["@type", "url"],
      "additionalProperties": false
    }
  },
  "required": ["@type", "@id", "name", "url", "logo"],
  "additionalProperties": false
}
