{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roku/json-schema/roku-build-out-schema.json",
  "title": "BuildOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roku-builds-api-openapi.yml#/components/schemas/BuildOut",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "artifactory_path": {
      "type": "string",
      "maxLength": 255,
      "minLength": 3,
      "pattern": "^[a-zA-Z0-9_-]*(\\/[a-zA-Z0-9._-]+)*(\\:[a-zA-Z0-9._-]+)?$",
      "title": "Artifactory Path",
      "description": "The path of the build in artifactory."
    },
    "tag": {
      "type": "string",
      "title": "Tag",
      "description": "The tag of the build"
    },
    "full_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Full Version",
      "description": "The full version of the build"
    },
    "asan": {
      "type": "boolean",
      "title": "Asan",
      "description": "Whether the build is ASAN"
    },
    "public": {
      "type": "boolean",
      "title": "Public",
      "description": "Whether the build is public"
    },
    "source": {
      "$ref": "#/$defs/BuildSource",
      "description": "The source of the build"
    },
    "device_type": {
      "$ref": "#/$defs/DeviceType",
      "description": "The type of the Device."
    }
  },
  "type": "object",
  "required": [
    "id",
    "artifactory_path",
    "tag",
    "full_version",
    "asan",
    "public",
    "source",
    "device_type"
  ],
  "$defs": {
    "BuildSource": {
      "type": "string",
      "enum": [
        "pre-merge",
        "main",
        "released",
        "alpha",
        "misc"
      ],
      "title": "BuildSource"
    },
    "DeviceType": {
      "type": "string",
      "enum": [
        "tv",
        "stb",
        "streambar"
      ],
      "title": "DeviceType"
    }
  }
}