{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-announcement-response-schema.json",
  "title": "AnnouncementResponse",
  "description": "Body of `GET /api/announcement`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-announcements-api-openapi.yml#/components/schemas/AnnouncementResponse",
  "properties": {
    "announcement": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/CurrentAnnouncement",
          "description": "The bar to show, or null when there is none.",
          "__uniqueRefKey": "#/components/schemas/CurrentAnnouncement__0"
        }
      ]
    }
  },
  "required": [
    "announcement"
  ],
  "type": "object",
  "$defs": {
    "CurrentAnnouncement": {
      "description": "The bar a page shows.",
      "properties": {
        "icon": {
          "description": "The mark drawn before it — `ProductHunt`, `Gift`, `Sparkles` or `Megaphone` — or\nnull for none. A page that does not know a value draws no mark.",
          "type": [
            "null",
            "string"
          ]
        },
        "id": {
          "description": "Which bar this is.",
          "type": "string"
        },
        "linkLabel": {
          "description": "The link's words, or null for no link.",
          "type": [
            "null",
            "string"
          ]
        },
        "linkUrl": {
          "description": "Where the link goes — an https URL or a path on this site — or null.",
          "type": [
            "null",
            "string"
          ]
        },
        "message": {
          "description": "The sentence, plain text.",
          "type": "string"
        }
      },
      "required": [
        "id",
        "message",
        "icon",
        "linkLabel",
        "linkUrl"
      ],
      "type": "object"
    }
  }
}