{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Schema for Code Climate language parser error responses",
  "$ref": "#/definitions/errors_object",
  "definitions": {
    "error": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "minLength": 1
        },
        "code": {
          "type": "string",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "minLength": 1
        },
        "meta": {
          "type": "object"
        }
      },
      "required": ["status", "code", "title"]
    },
    "errors_array": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/error"
      },
      "minItems": 1
    },
    "errors_object": {
      "type": "object",
      "properties": {
        "errors": {
          "$ref": "#/definitions/errors_array"
        }
      },
      "required": ["errors"]
    }
  }
}
