{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Synergon approved reference release manifest, schema 1.0.0",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "brand_id",
    "brand_release",
    "schema_version",
    "status",
    "automation_ready",
    "human_reference",
    "baseline_release",
    "released_at",
    "artifacts",
    "publication_policy"
  ],
  "properties": {
    "brand_id": {
      "const": "synergon-solutions"
    },
    "brand_release": {
      "type": "string"
    },
    "schema_version": {
      "const": "1.0.0"
    },
    "status": {
      "const": "approved-reference"
    },
    "automation_ready": {
      "const": false
    },
    "human_reference": {
      "const": "synergon-solutions-brand.html"
    },
    "baseline_release": {
      "const": "0.5"
    },
    "released_at": {
      "type": "string",
      "format": "date"
    },
    "publication_policy": {
      "type": "string"
    },
    "artifacts": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "path",
          "media_type",
          "sha256",
          "bytes"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9-]*$"
          },
          "path": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9-]*\\.json$"
          },
          "media_type": {
            "const": "application/json"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "bytes": {
            "type": "integer",
            "minimum": 1
          }
        }
      }
    }
  }
}
