{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetai-com/json-schema/fleetai-com-run-request-schema.json",
  "title": "RunRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetai-com-matg-api-openapi.yml#/components/schemas/RunRequest",
  "properties": {
    "pipeline": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9_-]{0,99}$",
      "title": "Pipeline"
    },
    "selector": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$",
      "title": "Selector"
    },
    "environment": {
      "type": "string",
      "enum": [
        "staging",
        "prod"
      ],
      "title": "Environment",
      "default": "staging"
    },
    "config": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Config"
    },
    "target_env_key": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,199}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Env Key"
    },
    "fi_max_dispatches": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10000.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Fi Max Dispatches"
    },
    "ups_usecase": {
      "type": "string",
      "enum": [
        "foundry",
        "matg"
      ],
      "title": "Ups Usecase",
      "default": "matg"
    },
    "ups_project_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$",
      "title": "Ups Project Id"
    },
    "smoke": {
      "type": "boolean",
      "title": "Smoke",
      "default": false
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,199}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workflow Id"
    },
    "idempotency_key": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$",
      "title": "Idempotency Key"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "pipeline",
    "selector",
    "ups_project_id",
    "idempotency_key"
  ]
}