{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://redbook.fun/specification/1.0/schemas/interface-error.schema.json",
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        },
        "context": {
          "oneOf": [
            {
              "$ref": "https://redbook.fun/specification/1.0/schemas/binding.schema.json"
            },
            {
              "type": "null"
            }
          ]
        },
        "details": {
          "$ref": "https://redbook.fun/specification/1.0/schemas/value.schema.json#/$defs/map"
        }
      },
      "required": [
        "code",
        "message",
        "retryable",
        "context"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
