{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://bodencrouch.github.io/clifwrap/schemas/release-manifest.v1.json",
  "title": "clifwrap release manifest",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "project", "generated_at", "artifacts"],
  "properties": {
    "schema": {
      "const": "https://bodencrouch.github.io/clifwrap/schemas/release-manifest.v1.json"
    },
    "project": {
      "const": "clifwrap"
    },
    "tag": {
      "type": "string",
      "minLength": 1
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "artifacts": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["name", "size", "sha256"],
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^clifwrap-.+"
          },
          "size": {
            "type": "integer",
            "minimum": 1
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        }
      }
    }
  }
}
