{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opencaselaw-ch/json-schema/opencaselaw-ch-mock-decision-request-schema.json",
  "title": "MockDecisionRequest",
  "description": "Request body for the mock decision endpoint.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opencaselaw-ch-openapi.json#/components/schemas/MockDecisionRequest",
  "properties": {
    "facts": {
      "type": "string",
      "title": "Facts"
    },
    "question": {
      "title": "Question",
      "type": [
        "string",
        "null"
      ]
    },
    "deciding_court": {
      "title": "Deciding Court",
      "type": [
        "string",
        "null"
      ]
    },
    "preferred_language": {
      "title": "Preferred Language",
      "type": [
        "string",
        "null"
      ]
    },
    "statute_references": {
      "title": "Statute References",
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "clarifications": {
      "title": "Clarifications",
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "fedlex_urls": {
      "title": "Fedlex Urls",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "default": 8
    }
  },
  "type": "object",
  "required": [
    "facts"
  ]
}