{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-bias-record-schema.json",
  "title": "BiasRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-eu-ai-act-api-openapi.yml#/components/schemas/BiasRecord",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "org_id": {
      "type": "string"
    },
    "model_id": {
      "type": "string"
    },
    "category": {
      "type": "string",
      "enum": [
        "gender",
        "age",
        "ethnicity",
        "disability",
        "religion",
        "nationality",
        "socioeconomic",
        "custom"
      ]
    },
    "score": {
      "type": "number",
      "format": "double",
      "description": "Calculated bias score (difference ratio)"
    },
    "threshold": {
      "type": "number",
      "format": "double"
    },
    "is_violation": {
      "type": "boolean"
    },
    "sample_size": {
      "type": "integer"
    },
    "group_a": {
      "type": "string"
    },
    "group_b": {
      "type": "string"
    },
    "group_a_rate": {
      "type": "number",
      "format": "double"
    },
    "group_b_rate": {
      "type": "number",
      "format": "double"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "window_start": {
      "type": "string",
      "format": "date-time"
    },
    "window_end": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object"
    }
  }
}