{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-qc-pipeline-create-request-schema.json",
  "title": "QcPipelineCreateRequest",
  "description": "Register a team environment as a private DataVendor QC pipeline.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-checks-api-openapi.yml#/components/schemas/QcPipelineCreateRequest",
  "properties": {
    "asset_type": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Asset Type"
    },
    "scope": {
      "type": "string",
      "enum": [
        "asset",
        "task"
      ],
      "title": "Scope",
      "default": "asset"
    },
    "key": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$",
      "title": "Key"
    },
    "label": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Label"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "registry_id": {
      "type": "string",
      "format": "uuid",
      "title": "Registry Id"
    },
    "scenario_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Scenario Name"
    },
    "model": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    },
    "pass_threshold": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"
        }
      ],
      "title": "Pass Threshold",
      "default": "60"
    },
    "credit_price": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)"
        }
      ],
      "title": "Credit Price",
      "default": "0"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "asset_type",
    "key",
    "label",
    "registry_id",
    "scenario_name"
  ]
}