{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/damdafa-com/json-schema/damdafa-com-action-response-schema.json",
  "title": "ActionResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/judge-damdafa-com-openapi.json#/components/schemas/ActionResponse",
  "properties": {
    "status": {
      "type": "string",
      "title": "Status"
    },
    "sessionId": {
      "type": "string",
      "title": "Sessionid"
    },
    "isCorrect": {
      "type": "boolean",
      "title": "Iscorrect"
    },
    "systemFeedback": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Systemfeedback"
    },
    "score": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Score"
    },
    "playerEloChange": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Playerelochange"
    },
    "caseEloChange": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Caseelochange"
    },
    "newPlayerElo": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Newplayerelo"
    },
    "groundTruth": {
      "anyOf": [
        {
          "$ref": "#/$defs/GroundTruth"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "status",
    "sessionId",
    "isCorrect"
  ],
  "$defs": {
    "GroundTruth": {
      "properties": {
        "historical_winner": {
          "type": "string",
          "title": "Historical Winner",
          "description": "Who actually won the real case (e.g., 'DEFENDANT (Davalı)')"
        },
        "legal_rule": {
          "type": "string",
          "title": "Legal Rule",
          "description": "The core legal principle that determined the outcome"
        }
      },
      "type": "object",
      "required": [
        "historical_winner",
        "legal_rule"
      ],
      "title": "GroundTruth"
    }
  }
}