{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weather-gov/refs/heads/main/json-schema/weather-gov-nws-connect-document-metadata-schema.json",
  "title": "NWSConnectDocumentMetadata",
  "description": "Metadata for an NWS Connect document.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "startTime": {
      "type": "string",
      "description": "The time when the document becomes active. ISO8601 datetime.",
      "format": "date-time"
    },
    "endTime": {
      "type": "string",
      "description": "The time when the document becomes inactive. ISO8601 datetime.",
      "format": "date-time"
    },
    "updateTime": {
      "type": "string",
      "description": "When the document was last updated. ISO8601 datetime.",
      "format": "date-time"
    },
    "title": {
      "maxLength": 50,
      "type": "string",
      "description": "A short title."
    },
    "description": {
      "type": "string",
      "description": "A longer description and/or caption."
    },
    "priority": {
      "type": "boolean",
      "description": "An indicator that a weather story should be emphasized."
    },
    "download": {
      "type": "string",
      "description": "The URL of the media content for the weather story.",
      "format": "uri"
    }
  }
}