{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/university-of-waterloo/json-schema/university-of-waterloo-site-news-schema.json",
  "title": "SiteNews",
  "description": "Model representing News data associated to a Site in the WCMS",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/university-of-waterloo-wcms-api-openapi.yml#/components/schemas/SiteNews",
  "type": "object",
  "properties": {
    "siteId": {
      "type": "integer",
      "description": "Unique, numeric site ID of the Site this news originates from",
      "format": "int32"
    },
    "uniqueKey": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unique Id of this news item"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Title of the news item"
    },
    "postedDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Content created or posted date",
      "format": "date-time"
    },
    "updatedDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Content updated date",
      "format": "date-time"
    },
    "itemUri": {
      "type": [
        "string",
        "null"
      ],
      "description": "URI to the news item in WCMS"
    },
    "audience": {
      "type": [
        "string",
        "null"
      ],
      "description": "Intended audience tag(s)"
    },
    "content": {
      "type": [
        "string",
        "null"
      ],
      "description": "News item content, often with HTML markup"
    }
  },
  "additionalProperties": false
}