{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://tmp.innovacionsantiago.cl/style-v10/schemas/manifest.v1.json",
  "title": "Manifest Style v10",
  "type": "object",
  "required": [
    "version",
    "channel",
    "digest",
    "commit",
    "created_at",
    "assets",
    "compatibility",
    "schemas"
  ],
  "properties": {
    "version": {
      "type": "string"
    },
    "channel": {
      "enum": [
        "candidate",
        "stable",
        "deprecated",
        "archived",
        "revoked"
      ]
    },
    "digest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "commit": {
      "type": "string",
      "pattern": "^[a-f0-9]{7,40}$"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "assets": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "required": [
          "bytes",
          "media_type",
          "sha256",
          "sri"
        ],
        "properties": {
          "bytes": {
            "type": "integer",
            "minimum": 0
          },
          "media_type": {
            "type": "string"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "sri": {
            "type": "string",
            "pattern": "^sha384-[A-Za-z0-9+/]+=*$"
          }
        },
        "additionalProperties": false
      }
    },
    "compatibility": {
      "type": "object"
    },
    "schemas": {
      "type": "object"
    }
  },
  "additionalProperties": false
}
