{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ErrorResponse",
  "title": "ErrorResponse",
  "type": "object",
  "description": "Error response returned by the API in case of an error",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "string",
      "description": "The error message"
    },
    "code": {
      "type": "string",
      "description": "The error code"
    },
    "details": {
      "type": "object",
      "description": "Additional error details"
    }
  }
}