{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ivive-app/json-schema/ivive-app-fit-response-schema.json",
  "title": "FitResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ivive-app-openapi.json#/components/schemas/FitResponse",
  "properties": {
    "model_id": {
      "type": "string",
      "title": "Model Id"
    },
    "model_name": {
      "type": "string",
      "title": "Model Name"
    },
    "dataset_id": {
      "type": "string",
      "title": "Dataset Id"
    },
    "assay_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Assay Type"
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source"
    },
    "slope": {
      "type": "number",
      "title": "Slope"
    },
    "intercept": {
      "type": "number",
      "title": "Intercept"
    },
    "r_squared": {
      "type": "number",
      "title": "R Squared"
    },
    "rmse": {
      "type": "number",
      "title": "Rmse"
    },
    "p_value": {
      "type": "number",
      "title": "P Value"
    },
    "slope_ci_lower": {
      "type": "number",
      "title": "Slope Ci Lower"
    },
    "slope_ci_upper": {
      "type": "number",
      "title": "Slope Ci Upper"
    },
    "intercept_ci_lower": {
      "type": "number",
      "title": "Intercept Ci Lower"
    },
    "intercept_ci_upper": {
      "type": "number",
      "title": "Intercept Ci Upper"
    },
    "n_points": {
      "type": "integer",
      "title": "N Points"
    },
    "outlier_indices": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Outlier Indices"
    },
    "regulatory_warning": {
      "type": "boolean",
      "title": "Regulatory Warning"
    },
    "species": {
      "type": "string",
      "title": "Species"
    },
    "units": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Units"
    },
    "method": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Method"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "outlier_candidates": {
      "items": {
        "$ref": "#/$defs/OutlierCandidate"
      },
      "type": "array",
      "title": "Outlier Candidates"
    }
  },
  "type": "object",
  "required": [
    "model_id",
    "model_name",
    "dataset_id",
    "slope",
    "intercept",
    "r_squared",
    "rmse",
    "p_value",
    "slope_ci_lower",
    "slope_ci_upper",
    "intercept_ci_lower",
    "intercept_ci_upper",
    "n_points",
    "outlier_indices",
    "regulatory_warning",
    "species",
    "created_at",
    "outlier_candidates"
  ],
  "$defs": {
    "OutlierCandidate": {
      "properties": {
        "index": {
          "type": "integer",
          "title": "Index"
        },
        "cook_distance": {
          "type": "number",
          "title": "Cook Distance"
        },
        "compound_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Compound Name"
        },
        "smiles": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Smiles"
        }
      },
      "type": "object",
      "required": [
        "index",
        "cook_distance"
      ],
      "title": "OutlierCandidate"
    }
  }
}