{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adro1b33/main/json-schema/adro1b33-landing-site-announcement-list-schema.json",
  "title": "LandingSiteAnnouncementList",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adro1b33-landing-announcements-api-openapi.yml#/components/schemas/LandingSiteAnnouncementList",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LandingSiteAnnouncement"
      },
      "readOnly": true
    }
  },
  "required": [
    "results"
  ],
  "$defs": {
    "LandingSiteAnnouncement": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "title": {
          "type": "string",
          "maxLength": 200
        },
        "message": {
          "type": "string",
          "maxLength": 500
        },
        "content": {
          "type": "string"
        },
        "category": {
          "enum": [
            "system",
            "development"
          ],
          "type": "string",
          "description": "* `system` - System\n* `development` - Development",
          "x-spec-enum-id": "4aa83ace04c14f02"
        },
        "priority": {
          "enum": [
            "normal",
            "urgent"
          ],
          "type": "string",
          "description": "* `normal` - Normal\n* `urgent` - Urgent",
          "x-spec-enum-id": "123f1ce285104da5"
        },
        "publishedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "attachments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SiteAnnouncementAttachment"
          },
          "readOnly": true
        },
        "landingDisplay": {
          "enum": [
            "none",
            "banner",
            "modal"
          ],
          "type": "string",
          "description": "* `none` - None\n* `banner` - Banner\n* `modal` - Modal",
          "x-spec-enum-id": "8b5562f4bf69f6a4"
        }
      },
      "required": [
        "attachments",
        "id",
        "message",
        "updatedAt"
      ]
    },
    "SiteAnnouncementAttachment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "kind": {
          "enum": [
            "image",
            "file"
          ],
          "type": "string",
          "description": "* `image` - Image\n* `file` - File",
          "x-spec-enum-id": "7a240f368c7b0df7"
        },
        "originalName": {
          "type": "string",
          "maxLength": 255
        },
        "contentType": {
          "type": "string",
          "maxLength": 150
        },
        "sizeBytes": {
          "type": "integer",
          "maximum": 9223372036854775807,
          "minimum": 0,
          "format": "int64"
        },
        "url": {
          "type": "string",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        }
      },
      "required": [
        "createdAt",
        "id",
        "kind",
        "originalName",
        "sizeBytes",
        "url"
      ]
    }
  }
}