{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beancount-io/json-schema/beancount-io-error-schema.json",
  "title": "Error",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beancount-io-openapi.json#/components/schemas/Error",
  "type": "object",
  "required": [
    "code",
    "message"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Machine-readable error code, e.g. BAD_REQUEST, UNAUTHORIZED, RATE_LIMITED"
    },
    "message": {
      "type": "string",
      "description": "Human-readable message"
    },
    "hint": {
      "type": "string",
      "description": "Resolution hint - what to do next"
    },
    "details": {
      "type": "object",
      "additionalProperties": true,
      "description": "Optional structured details"
    }
  }
}