{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unplain-io/json-schema/unplain-io-json-rpc-response-schema.json",
  "title": "JsonRpcResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unplain-io-openapi.json#/components/schemas/JsonRpcResponse",
  "type": "object",
  "required": [
    "jsonrpc"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string",
      "const": "2.0"
    },
    "id": {
      "type": [
        "string",
        "integer",
        "null"
      ]
    },
    "result": {
      "type": "object"
    },
    "error": {
      "$ref": "#/$defs/JsonRpcErrorObject"
    }
  },
  "$defs": {
    "JsonRpcErrorObject": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "integer"
        },
        "message": {
          "type": "string",
          "description": "Written for the person whose assistant just failed: it names the problem and the fix, and clients surface it verbatim."
        }
      }
    }
  }
}