{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agrodt.github.io/agrotool-knowledge-portal/schemas/v1/current.schema.json",
  "title": "PublicReleasePointer",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "release_id",
    "release_path",
    "channel",
    "release_manifest_sha256"
  ],
  "properties": {
    "release_id": {
      "type": "string",
      "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?\\+[0-9]{8}$"
    },
    "release_path": {
      "type": "string",
      "pattern": "^releases/[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?\\+[0-9]{8}$"
    },
    "channel": { "enum": ["preview", "stable"] },
    "release_manifest_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    }
  }
}
