{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bugbug-io/json-schema/bugbug-io-v2-visual-regression-ref-screenshot-create-schema.json",
  "title": "V2VisualRegressionRefScreenshotCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bugbug-io-visual-regression-api-openapi.yml#/components/schemas/V2VisualRegressionRefScreenshotCreate",
  "type": "object",
  "properties": {
    "stepId": {
      "type": "string",
      "format": "uuid"
    },
    "screenshot": {
      "type": "string",
      "format": "uri"
    },
    "browserName": {
      "type": [
        "string",
        "null"
      ]
    },
    "osName": {
      "type": [
        "string",
        "null"
      ]
    },
    "screenSizeType": {
      "enum": [
        "desktop",
        "mobile",
        "custom",
        "",
        null
      ],
      "type": [
        "string",
        "null"
      ],
      "description": "* `desktop` - Desktop\n* `mobile` - Mobile\n* `custom` - Custom",
      "x-spec-enum-id": "c0cdf94a62475084"
    },
    "runProfileId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "runMode": {
      "enum": [
        "server",
        "local",
        "recording",
        "",
        null
      ],
      "type": [
        "string",
        "null"
      ],
      "description": "* `server` - cloud\n* `local` - local\n* `recording` - recording",
      "x-spec-enum-id": "396ab9b642f5073e"
    }
  },
  "required": [
    "screenshot",
    "stepId"
  ]
}