{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/factorguide-io/json-schema/factorguide-io-diagnose-request-schema.json",
  "title": "DiagnoseRequest",
  "description": "Single-pair diagnostic: IC with risk prediction for both model classes.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/factorguide-io-openapi.json#/components/schemas/DiagnoseRequest",
  "properties": {
    "i": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ],
      "title": "I"
    },
    "j": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ],
      "title": "J"
    },
    "coupling_value": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Coupling Value"
    },
    "sample_size": {
      "type": "integer",
      "minimum": 10.0,
      "title": "Sample Size"
    },
    "variance_i": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Variance I"
    },
    "variance_j": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Variance J"
    }
  },
  "type": "object",
  "required": [
    "i",
    "j",
    "coupling_value",
    "sample_size"
  ]
}