{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/byimprint-com/json-schema/byimprint-com-json-rpc-error-response-schema.json",
  "title": "JsonRpcErrorResponse",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/byimprint-com-openapi.json#/components/schemas/JsonRpcErrorResponse",
  "type": "object",
  "properties": {
    "jsonrpc": {
      "type": "string",
      "const": "2.0"
    },
    "id": {
      "oneOf": [
        {
          "$ref": "#/$defs/JsonRpcId"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "data": {
          "$ref": "#/$defs/JsonRpcErrorData"
        }
      },
      "required": [
        "code",
        "message",
        "data"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "jsonrpc",
    "id",
    "error"
  ],
  "additionalProperties": false,
  "$defs": {
    "JsonRpcErrorData": {
      "type": "object",
      "properties": {
        "errorCode": {
          "type": "string",
          "description": "Stable machine-readable byImprint error identifier."
        },
        "resolutionHint": {
          "type": "string",
          "description": "A concrete next step an agent can use to recover."
        }
      },
      "required": [
        "errorCode",
        "resolutionHint"
      ],
      "additionalProperties": false
    },
    "JsonRpcId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    }
  }
}