{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-check-run-request-schema.json",
  "title": "CheckRunRequest",
  "description": "Request to execute one check against one resource.",
  "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/CheckRunRequest",
  "properties": {
    "subject_type": {
      "$ref": "#/$defs/CheckSubjectType"
    },
    "subject_id": {
      "type": "string",
      "format": "uuid",
      "title": "Subject Id"
    },
    "overwrite": {
      "type": "boolean",
      "title": "Overwrite",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "subject_type",
    "subject_id"
  ],
  "$defs": {
    "CheckSubjectType": {
      "type": "string",
      "enum": [
        "environment",
        "taskset",
        "task",
        "trace"
      ],
      "title": "CheckSubjectType",
      "description": "Platform resources supported by the check framework."
    }
  }
}