{
    "$id": "http://example.com/example.json",
    "type": "object",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "type": {
        "$id": "/properties/type",
        "type": "string",
        "title": "The Type Schema ",
        "description": "This will specify the result type, whether the contact mail was succesfully processed or not",
        "default": "",
        "examples": [
          "alert-success"
        ]
      },
      "message": {
        "$id": "/properties/message",
        "type": "string",
        "title": "The Message Schema ",
        "description": "This will contain a message text corresponding to the type",
        "default": "",
        "examples": [
          "We have received your message, we'll get back to you soon"
        ]
      },
      "error_list": {
        "type": "array",
        "items": {
           "$id": "/properties/error_list/items/",
           "type": "object",
           "properties": {
              "error_code": {
                 "$id": "/properties/error_list/items/properties/error_code",
                 "type": "string",
                 "description": "If the search fails an error code is sent back.",
                 "default": "",
                 "examples": [
                    "unexpected-field-in-query"
                 ]
              },
              "field": {
                 "$id": "/properties/error_list/items/properties/field",
                 "type": "string",
                 "description": "Field name for which error is there.",
                 "default": "",
                 "examples": [
                    "glytoucan_c"
                 ]
              }
           },
           "required": [
              "error_code"
           ]
        }
     }
   }
}