{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GremlinAmp platform update",
  "type": "object",
  "required": [
    "schema",
    "app_id",
    "platform",
    "release"
  ],
  "properties": {
    "schema": {
      "const": 1
    },
    "app_id": {
      "type": "string"
    },
    "platform": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9-]{0,31}$"
    },
    "release": {
      "type": "object",
      "required": [
        "version",
        "build",
        "url",
        "bytes",
        "sha256"
      ],
      "properties": {
        "version": {
          "type": "string"
        },
        "build": {
          "type": "integer",
          "minimum": 1
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "bytes": {
          "type": "integer",
          "minimum": 1
        },
        "sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}
