{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/politecnico-di-torino/main/json-schema/politecnico-di-torino-announcement-schema.json",
  "title": "Announcement",
  "description": "An in-app announcement surfaced to PoliTO students (source: polito/api-spec).",
  "type": "object",
  "required": ["id", "title", "contents", "scope", "seen", "date"],
  "properties": {
    "id": { "type": "string", "examples": ["abc-123"] },
    "title": { "type": "string", "examples": ["Welcome to the app"] },
    "contents": { "type": "string", "examples": ["Here is a quick guide to get started."] },
    "description": { "type": "string", "examples": ["Onboarding announcement"] },
    "scope": { "type": "string", "examples": ["onboarding"] },
    "seen": { "type": "boolean" },
    "date": { "type": "string", "format": "date-time" },
    "cover": { "type": "string", "format": "uri" }
  }
}
