{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/okareo/json-schema/okareo-check-validate-request-schema.json",
  "title": "CheckValidateRequest",
  "description": "Request body for POST /check_validate. Validates check code or prompt without persisting.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/okareo-checks-api-openapi.yml#/components/schemas/CheckValidateRequest",
  "properties": {
    "check_type": {
      "type": "string",
      "enum": [
        "code",
        "model",
        "audio"
      ],
      "title": "Check Type",
      "description": "Type of check: code (code-based), model (model-based judge prompt), or audio (LLM audio judge)."
    },
    "check_config": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Check Config",
      "description": "Check config: code_contents for code-based, prompt_template for model-based or audio."
    },
    "output_data_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Data Type",
      "description": "Output data type (e.g. pass_fail, score, analysis). Used for frontend symmetry."
    }
  },
  "type": "object",
  "required": [
    "check_type",
    "check_config"
  ]
}